on 01-07-2009 9:07 AM
Hi
i have two dcs i want to acces amethod present in dc1 from dc2 .can you please tell me the code.
thanks rahul
Hi,
Add comp1 as used Webdynpro component in comp2. By this, you can see the interfacecontroller of comp1 in comp2.
1) Add a method in interface controller of comp1 to call method of comp controller of comp1.
2) LInk the inteface controller of comp1(used Comp) with comp2 in Diagramview of Comp2.
3) call the method from comp2 controller as
wdThis.wdgetcomp1Interfacecontroller().method();
By this you can have only one way communication, like you can call comp1 from comp2, but you can not call comp2 from comp2. But the above method may solve your requirement.
If you want two communication you need to use Component Interface Definition, for this see the below doc
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.