Skip to Content
0
Former Member
May 16, 2005 at 03:54 PM

Call a Window in DC

99 Views

Hi,

I got to development Component DC1 and DC2 (WebDynpro Type).

I put in Public Parts the component of DC1.

In DC2 i would like to open a window from DC1 using this code:

IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI

.getComponentInfo().findInWindows("NameofWindowInDC1");

IWDWindow window = wdComponentAPI.getWindowManager()

.createWindow( windowInfo, true);

// set the WindowPosition on the screen

window.setWindowPosition(100, 100);

// and show the window

window.open();

// Save WindowInstance in Context

wdContext.currentPopupElement().setWindowInstance(window);

I got an Execption because the DC2 doesn't see the windows in DC1.

How can I do that? It is possible?

thank you