cancel
Showing results for 
Search instead for 
Did you mean: 

Creating window in web dynpro application in NW 7.3 (NWDS 7.3) environment

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

Sounds like your project has not been checked out for editing.

Former Member
0 Kudos

Hi

This can not be the case as I even created a whole new project and then also I was not able to add a new window.

Any other points?

Regards

Vineet

Former Member
0 Kudos

Where do you try this, inside the "Web Dynpro Explorer"?

Former Member
0 Kudos

Hi

I am trying this in Web Dynpro Perspective.

Regards

Vineet

ajaykumar9
Explorer
0 Kudos

Hi I am facing the same issue Can you please help me on this?

I am working in Local development. NWDS7.3.

Thnaks and regrds,

Ajay

former_member182534
Active Participant
0 Kudos

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

Stefan-EA
Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi

I already have this link but the issue is documentation for these examples is not very convenient for me to follow.

Regards

Vineet