I'm working with two Web Dynpro Java components (SAP Netweaver Developer Studio 7.0), where the first component is embedding another one and using it in a pop-up window.
The embedded component has a method triggered on a button click, after this method execution I need to call an embedding component method.
Should I use the Web Dynpro Component Interface to call the embedding component method?
Exactly! The steps you should preform are:
Create the wrapper method (with the same signature) in the Interface Controller of your Comp1 (embedding) component, and invoke necessary component controller method there
wdThis.wdGetComp1Controller.doSmth()
Add Comp1 to used part of your Comp2 (embedded) component.
Now you can be able to access methods of your embedding component (Comp1) like this
wdThis.wdGetComp1Interface().doSmth();
The problem was solved this way:
The embedded component has a button which is going to trigger an Interface Controller event.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.