on 07-18-2008 9:07 AM
Hi all,
I have a DC with multiple components and I would like to call a method implemented in the component A from the component B, how can I do that?
Best Regards.
Toony
Hi,
This will be useful https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0409d83-5ed5-2910-ef91-e41da6d5...
[Web Dynpro component Reuse|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3fc1e590-0201-0010-7e8e-eca71476785e]
regards,
Pradeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
I have found the solution with your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Use Public Part of B under Used Dc of A.
Make an entry of Component B in used web dynpro components of A
In view controller of A under properties Tab enter Interface Controller under required controllers.
In view controller of A to access method of component B use this sample code.
wdThis.wdGet<view name>WindowInterfaceController().getMethod();
// where getMethod() is method in interface controller of B
NOTE:
Make sure using this we can not access methods from view controller of other component .
But methods from component controller of B can be accessed.
Eg
Methods of Component Controller can be called in Interface controller in same way given above and that method of Interface controller can be called in other component
Mandeep Virk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have a look at this PDF.... will be helpful...
Refer the below threads
Regards,
Srinivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.