cancel
Showing results for 
Search instead for 
Did you mean: 

Popup window - Non modal

Former Member
0 Kudos

Hi,

I have created a popup window. How to make it non modal?

my code goes like this.....

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();

Pls help

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Valery,

Thanks a lot for this correction. But, I have noticed whatever boolean value I give, it always opens up a new modal WD window. And except for the createExternalWindow() I have never been able to open a new browser window. Can you please verify this.

Best Regards,

Nibu.

Former Member
0 Kudos

Oops!

You are right -- first method always create modal pop-over window, second one (createExternalWindow) creates separate browser window.

VS

Former Member
0 Kudos

Hi Sujesh,

<b>IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(windowInfo, true);</b>

The second parameter you specify is supposed to determine whether it is modal or not.

Best Regards,

Nibu

Former Member
0 Kudos

Not exactly correct answer.

If you set modal to true you will create WD specific window in same browser window (aka pop-over)

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

It is not possible to create modal browser window (AFAIK supported by IE only).

VS

Former Member
0 Kudos

Hi Sujesh,

As far as I know this functinality hasn't been implemented atleast till SP9. Though you have a boolean variable for specifying whether the window created is modal or not, it will always create a <b>modal</b> window.

Best Regards,

Nibu.

Message was edited by: Nibu Wilson

Former Member
0 Kudos

Nibu,

Where is that option to set modal or non modal??