cancel
Showing results for 
Search instead for 
Did you mean: 

How to develop Modal dialog box in webdynpro

Former Member
0 Kudos

Hi Friends,

I am looking for How to develop Modal window.

I got a tutorial for Popup, but not for modal window.

By saying Modal, I mean that suppose user is on a view and clicks a link , user will see another screen which is modal window. If user clicks close on Modal window, then control will come back to main screen.

Nav

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I dont know if you have looked at this API.

Check this might be helpful.

https://media.sdn.sap.com/javadocs/NW04/SPS15/wd/com/sap/tc/webdynpro/services/session/api/IWDWindow...

Kumar

Former Member
0 Kudos

Hi Kumar,

Thanks!

but Hwo to use it, if you can suggest from where can I get some piece of code to create a modal window.

Former Member
0 Kudos

Hi Nav,

Us the following code to cretae model window:

IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("Popup");

IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(windowInfo, true);

wdContext.currentContextElement().setWindowInstance(window);

window.setWindowPosition(WDWindowPos.CENTER);

window.open();

if you set modal to true you will create WD specific window in same browser window

If you set modal to false you will create new browser window.

See this thread also will help ful:

Kind Regards,

S.Saravanan.