Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Control has to be only on the External window

Hi ..

Please help me solve this -

Requirement -

1. An external window should open upon a particular check .

2. In this Window the user has to fill the fields.

3. When the external window opens , the control should be restricted only with it .The user cannot click anywhere outside this window.

4. The minimize and the close buttons of this external window should also be disabled.

I have created this Pop Up . But the PROBLEM is that the user is able to click outside this window also.

And also I am not able to disable the min and close buttons of this external window .

I have used a modelwindow.

waiting for solutions !!

Thanks in Advance !!

Regards

Smita

Former Member
replied

Hi,

Do this way... So that there will not be a minimise option, close option. and control will be there inside the Window and till the time user closes the window he cannot perform any actions on any other screens.

//Added below code to open a new window

IWDWindowInfo info =

wdComponentAPI.getComponentInfo().findInWindows("WD_vendorTable");

//Where WD_vendorTable is a window with the desired view embedded inside it.

IWDWindow win =

wdComponentAPI.getWindowManager().createModalWindow(info);

wdContext.currentContextElement().setVa_VendorWinName(win);

//Save this window information in a context variable(declared at component level and mapped to the parent view and to the window(child) view)

win.setWindowSize(300, 300); //Desired window size

win.setWindowPosition(600, 100); //Desired window position (from top left cornor)

win.setTitle("Vendor Details"); //Desired window title

win.show();

To close this window

create a button inside it and inside the button's action

IWDWindow win=wdContext.currentContextElement().getVa_AssetNoWinName();

win.destroyInstance();

Regards,

Srinivas.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question