on 04-30-2013 12:33 PM
Hi,
I have a scenario at my client where I have a WD application that reuses a few WD components of varying complexity. The main WD application as well as the reused components makes use of the same assistance class. Which works great for reusing complex methods between the main WD Application and its components it reuses. This however leads to an issue when you wish to store DATA in your assistance class.
The scenario is as follows;
The problem is that the 2 assistance class object don't know of one another and is two separate instances of the assistance class.
The question I thus have is, is there a way to share the WD_ASSIST object between all the components? The data that is stored in the assistance class is complex and it will not make sense to try and store it as context elements which is then share between the components' contexts.
Thanks and regards
Chris
Hi Chris,
Yes, it's possible to share an instance of the assistance class across components. Check out the section Shared Use of an Assistance Class Instance in SAP Help document, Working with the Assistance Class. Also check out demo component DEMO_COMMON_ASSISTANCE1 in your system.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chris,
THere is another way out also, that you can try. Refer blog - Data sharing between multiple WD component using same assistance class
Hope this helps.
Cheers!
Abhinav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The best way to do it is store data in context elements.Context elements can store very complex data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.