cancel
Showing results for 
Search instead for 
Did you mean: 

Modal window can't show window with viewset???

Former Member
0 Kudos

Hi all,

I use the following code to create a popup modal window. When i embed only one view, it works fine, but when i embed a viewset, and put multiple views into the viewset, it can only pop up a tiny little area with nothing in it.

is there a reason for this? what do i do to pop up a window with viewset?

Thanks!


	IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("OneWindow");
	IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
	window.setWindowPosition (300, 150);
	window.show();

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member192434
Active Contributor
0 Kudos

Hi

I'm opening popup window using viewSet. and its working fine,

You need to set the window position, so that it can be viewed properlty.

public void openPopUpWindow( )

{

//@@begin openPopUpWindow()

IWDWindowInfo winfo=wdComponentAPI.getComponentInfo().findInWindows("Popwindow");

IWDWindow window1=wdComponentAPI.getWindowManager().createModalWindow(winfo);

window1.setWindowPosition(10,280);

window1.show();

//@@end

}

former_member197348
Active Contributor
0 Kudos

Hi,

Set Window size explicitly. Otherwise the window is rendered with default wodth & height. You can set Window size explicitly like this.

window.setWindowPosition (300, 150);

window.setWindowSize(450, 400);

window.show();

Regards,

SIVA