cancel
Showing results for 
Search instead for 
Did you mean: 

Parent window objects are accessible even when ModelWindow is being displayed

lakshmikanthaiah_s
Participant
0 Kudos

Hello Experts,

Portal Version details:

VM Java Version: 1.6.0_131

VM Runtime Version: 6.1.098 25.51-b14

Java Kernel Version: 7.40.3301.407193.20160809100702

As given the code, the ModelWindow is working as expected, if it runs directly from NWDS, after build-deploy on the Portal Server.

But If the same application runs from iView, even the parent window objects are accessible/clickable when the modal window is still open.

// Create and open modal window
IWDWindowInfo popupWindowWindowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PopupCommentWin");
IWDWindow popupWindow = wdComponentAPI.getWindowManager().createModalWindow(popupWindowWindowInfo);
popupWindow.setWindowPosition(WDWindowPos.CENTER);
popupWindow.setWindowSize(1000, 500);
popupWindow.show();
wdContext.currentContextElement().setCommentWindowInstance(popupWindow); 
//Closing window
IWDWindow window = wdContext.currentContextElement().getCommentWindowInstance();
window.destroyInstance(); 

Can anybody suggest solution on this problem? It has become quite serious and affecting all places where ever ModelWindow is used.

Early reply appreciated.

Regards

Kantha

Accepted Solutions (0)

Answers (1)

Answers (1)

lakshmikanthaiah_s
Participant
0 Kudos

Hi Guys,

As checked again, it is working, but only for the parent application window.

It does not consider non-parent application window links as parent object.

And it gave me clarification.

🙂

Regards,

Kantha