cancel
Showing results for 
Search instead for 
Did you mean: 

View Modal Dialog Box

Former Member
0 Kudos

Hi Friends,

I have created view for dialog box(not window).. This view should be displayed in a modal dialog window.....

so How to display modal dialog using view....

Please send me the steps....

Thanks & regards

Mathi s

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Create a window, say "DialogWindow", in the IDE and embed the view in it.

In a controller method, access the window manager for the component, create and open the window:

IWDWindowManager winMgr = wdComponentAPI.getWindowManager();
IWDWindowInfo info = wdComponentAPI.getComponentInfo().findInWindows("DialogWindow");
IWDWindow dialogWindow = winMgr.createModalWindow(info);
dialogWindow.show();

Additionally, you might want to store the window instance in a context attribute to be able to close/destroy it from another controller method.

Armin

Former Member
0 Kudos

Hi,

Thanks For Ur Reply,

I have <b>created view</b> for dialog box.... I am not created window....

How will i use view for modal dialog box...

Please tel me....

Former Member
0 Kudos

I told you already: Create a window and embed the view into this window.

Armin