Skip to Content
0
Former Member
Jul 17, 2008 at 03:42 PM

createModalWindow doesn't seem to create a MODAL window

29 Views

SAP J2EE version 7.0 SP13

NWDS is 7.0.13

I have no problem creating a popup window in Java WebDynpro. However, it seems that the window is not modal. Whtever code follows the call to open the modal window continues to run while the window is open.

The following code is in openSaveMsg() method.

IWDWindow modalWindow ;

IWDWindowInfo winInfo = wdComponentAPI.getComponentInfo().findInWindows("SaveMsg");

modalWindow = wdComponentAPI.getWindowManager().createModalWindow(winInfo) ;

modalWindow.setWindowPosition(WDWindowPos.CENTER) ;

modalWindow.setWindowSize(400, 175) ;

modalWindow.setTitle("Do you want to save?") ;

modalWindow.show() ;

Any code that follows openSaveMsg() will execute while the modalWindow is open.

Obviously, there are ways to handle this issue, but I'd like to know how to create a window that's truly modal.