cancel
Showing results for 
Search instead for 
Did you mean: 

Popup window

Former Member
0 Kudos

Hello,

Can anyone help me in creating Popup window. How to open a popup window.

Thanks,

Susil

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

Please go through pdf for simple popup window

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20d2def3-f0ec-2a10-6b80-877a71ec...

Thanks and Regards,

Akila

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

Use the given code to open a window

// Window u201CAddressbookWindowu201D

IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo()

.findInWindows("Window Name");

//create the u201CAddressbookWindowu201D

IWDWindow window = wdComponentAPI.getWindowManager().createWindow( windowInfo, true);

//set the WindowPosition on the screen

window.setWindowPosition(300, 150);

//and show the window

window.open();

// Save WindowInstance in Context

wdContext.currentPopupElement().setWindowInstance(window);

Regards

Padma N

Former Member
0 Kudos

Hi Sushil ,

Go to this thread, you will find documents to create pop up window.

Regards

Sagar Ingalwar

former_member201361
Active Contributor
0 Kudos

hi,

follow this article for Pop up Window

[http://help.sap.com/saphelp_nw04/helpdata/en/75/064640c0e56913e10000000a1550b0/frameset.htm]

Former Member
0 Kudos

Hello Susil,

First create an attribute of type IWDWindow.

Create a button in the view from where you want to open the popup and within that button type this code..

IWDWindowInfo winInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("give the window name here");

IWDWindow wind = (IWDWindow)wdComponentAPI.getWindowManager().createModalWindow(winInfo);

wdContext.currentnodeElement().setattribute(wind);

wind.show();

Regards,

Arun