on 07-28-2006 9:13 AM
Hi,
I created two components (A,B), A calls B as a popup window. Thats works fine, but how can A pass a parameter to B?
B has an inputPlug, but A doesnt use that plug. A executes the following code in order to show B as a popup.
IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI. getComponentInfo().findInWindows("Test");
IWDWindow window = wdComponentAPI. getWindowManager(). createWindow(windowInfo, true);
window.setWindowPosition(350, 200);
window.setWindowSize(200, 50);
window.open();
wdThis.wdGetContext().currentContextElement().
setTestWindow(window);
Is a good idea to create a setter method in the InterfaceController of the B component?
Thanks,
Ricard.
Hi,
In component A's interface controller context, set the parameter value you want to pass to B.
Add A as a "Used Web Dynpro Component" in B.
Add A's interface controller as a required controller to B's interface controller.
Now from B's interface controller, you can access A's context as:
wdThis.wdGet<component A>Interface().wdGetAPI().getContext().get<fieldValue>();
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.