cancel
Showing results for 
Search instead for 
Did you mean: 

Communication between 2 WebDynpro DCs

Former Member
0 Kudos

Hello,

i have 2 DCs with a Webdynpro, the Webdynpro in the first DCs is a reusable POPUP.

Now i open in the second DCs(WD) the POPUP and if the POPUP closing it call a event in the second DCs(WD) for send the selected information.

My problem is how can i send parameter to the POPUP, when i open it?

THX

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos
Former Member
0 Kudos

hi,

its been some time since i worked on this and am penning down the steps that i followed.

1. Create a interface view and expose the same as public part.

2. consume the public part in the second DC.

3. add the view to the controller (In the properties tab add the interface view and controller component)

4. add the interface to the view and add the view to the window or the viewset (based on the requirement).

step 3 will have the first component visible in the first component.

hope that helps.

Regards,

S.Divakar

laurent_chavanis
Explorer
0 Kudos

Hello,

In the Popup InterfaceController, create a method, lets say initializeView(initParams), and call it just before opening the popup using :

IExternalPopupCompViewInterface popupIntrf = wdThis.wdGetPopupCompInstInterface();

popupIntrf.initializeView(initParams);

Hope this helps,

Laurent

Former Member
0 Kudos

THX for your answer.

I have not direct a popup-window.

it is for a example.

I will call a funktion to set a parameter, befor i call window.open()

// look for GIDsearchWindow

IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("AddressbookWindow");

//create the "AddressbookWindow"

IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);

//set the window position on the screen

window.setWindowPosition(150, 150);

//and show the window

window.open();

former_member182372
Active Contributor
0 Kudos

Hi Sven,

Did you check my post for your same question here ?

Best regards, Maksim Rashchynski.