on 08-08-2011 3:57 PM
Hi
I am trying to develop an application on NWDS 7.3 in NW 7.3 environment.
My task requires me to create a popup window, but I am not getting any option to create another window apart from main window.
I tried using right click on windows, project/ DC but not getting any option to create a new window.
Only option where it is mentioned New Window (rich click on Project --> New --> Window) is also coming as read only.
Any idea how to have two windows in such applications.
Regards
Vineet
Hi,
if you just want to show an info popup then you can use this code too:
IWDConfirmationDialog confirmation = wdComponentAPI.getWindowManager().createConfirmationWindow(
"Here comes the text you intend to display in the popup",
wdThis.wdGetClosePopupAction(),
"Ok, this is going to show up on the button you can use to close the popup");
confirmation.setTitle("An info message, this is appearing in the titlebar of the popup");
confirmation.setIcon(WDResourceFactory.getSystemResource(WDIconLarge.WarningMessage).toString());
confirmation.setWindowPosition(100, 300);
confirmation.setWindowSize(400, 100);
confirmation.show();
Cheers,
Ervin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sounds like your project has not been checked out for editing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vineet,
The following code should help you.
Where the Open window code opens your window as pop up.
And to close this pop up you need to use the close window code.
open window
IWDWindowInfo windowInfo =(IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("<Name of the window given>");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
wdContext.current<Node>Element().set<Window instance attribute>(window);
window.show();
close window
IWDWindow window = wdContext.currentt<Node>Element().get<Window instance attribute>();
window.hide();
window.destroyInstance();
Regards
Piyas
Take a look at the [Web Dynpro for Java Demo Kit|http://wiki.sdn.sap.com/wiki/display/WDJava/WebDynproforJavaDemo+Kit], there is a tutorial for creating pop up windows.
Although the demo kit is not specific to Web Dynpro 7.3, the examples should give you a good idea on how to create what you need. You can also [download |http://www.sdn.sap.com/irj/scn/index?rid=/webcontent/uuid/7068a12e-f804-2d10-4699-b96a3a69c2c0] [original link is broken];all the NetWeaver 7.20 examples to view the code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.