on 02-12-2007 1:53 PM
Hi,
I am working on creating a pop up window in WebDynpro application. This window is not an external Window, just a pop up that displays a WebDynpro View. I have discovered that the createWindow() method is deprecated. Can someone shed some light on how to create a pop up?
Deprecated Code:
IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("DefaultValueSelectWindow");
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
window.setWindowPosition(WDWindowPos.CENTER);
window.setWindowSize(50, 150);
window.open();
Hi Brian,
Eventhough it is deprecated, you can use it to create a popup.
Regards,
Jhansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brian,
Instead of using
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
use the
IWDWindow window = wdComponentAPI.getWindowManager().<b>createModalWindow</b>(windowInfo);
which is not deprecated.
Regards,
Jhansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Almost forgot the solution. Thanks again to all!
IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("DefaultValueSelectWindow");
WDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
window.setWindowPosition(WDWindowPos.CENTER);
window.setWindowSize(50, 150);
window.show();
Hi,
IWdwindow excelLinkWindow ;
excelLinkWindow =wdComponentAPI.getWindowManager().createModalWindow(wdComponentAPI.getComponentInfo().findInWindows("ExcelLinkPopup"));
excelLinkWindow.setWindowPosition(WDWindowPos.CENTER);
excelLinkWindow.open();
Crete the new Window in ur application .
This might helps you.
Thanks,
Lohi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
in you code
<b>wdComponentAPI.getWindowManager().createWindow(windowInfo, true);</b> is deprecated. use
wdComponentAPI.getWindowManager().createModalWindow(windowInfo, true)
and instead of
window.open();
use
window.show();
Deprecated methods may not be supported in future versions.
Regards,
Gopi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brian,
the following section in the docu should help you
http://help.sap.com/saphelp_nw04/helpdata/en/75/064640c0e56913e10000000a1550b0/content.htm
In the following step, the java-code to show and destroy the window is described...
regards
ingo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.