on 05-16-2005 4:54 PM
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
Hi
U can write the same code in DC1 Interface Controller Method and on Click of some Action u can call the Method that is exposed thr Public Part of Dc1 from DC2
See i hope i understood ur scenario correctly
i have some action to perform in DC2 which onClick shuld opena window in which is written in DC1
if yes then u can write the following code in Interface Controller method of DC1
IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows(windowName);
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
wdContext.currentContextElement().setVaWindowInst(window);
window.setWindowPosition(WDWindowPos.CENTER);
window.setWindowSize(700,400);
window.open();
Then U can call this Interface Controller method from the View of DC2 in Action say
wdThis.wdGetUC_Component OFDC1().<<Interface Controler Method>>();
Hope this shuld solve the problem
With Wishes
Krisahna kanth
Message was edited by: krish kanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joseph
My understanding is component DC1 is used in Component DC2.
1. Create a window in DC2.
2. Embed a interface view in the window created and choose the interface view.
3. on click of a button in component DC2, Write the code what you have written.
Hope this should work.
Let me know if you require any other help.
Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.