cancel
Showing results for 
Search instead for 
Did you mean: 

Parameters between components

Former Member
0 Kudos

Hi,

I created two components (A,B), A calls B as a popup window. That’s works fine, but how can A pass a parameter to B?

B has an inputPlug, but A doesn’t 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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (0)