on 07-26-2006 12:05 PM
Hello,
I have a project which contains two Components, A & B.
I have exposed a method at the interface controller of Component A. How can I consume it from Component B?
Hi,
First add ComponentA as a used webdynpro component in ComponentB. Then open the Interface Controller of B and switch to Properties Tab. Select Add in the "Required Controllers" section. From the dialog that appears, select A's interface controller. Then you can access A's method from B's interface controller as:
wdThis.wdGetAComponentInterface().<method>;
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Roy ,
Go throught this link u will find.
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/751d003a-0b01-0010-8996-afbaa3fd5339
Cheers
Mandapati.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Declare A it as a used component in B.
Add the interface controller A to the properties tab where ur consuming the method i.e view or controller of B.
Access it by
wdThis.wdget<interfacecontroller A>.methodname();
Regards,
Vijayakhanna Raman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Roy,
You define a component usage to B from component A. Then retrieve the pointer to the component interface of B and call the method. In WD ABAP, there is a wizard that generates code to call a method of another component.
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.