cancel
Showing results for 
Search instead for 
Did you mean: 

Control has to be only on the External window

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

srinivas_sistu
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi............thnx a ton

ur approach is of immense help !!!!!!

Regards

Smita

Former Member
0 Kudos

Hi ....the method "setVa_VendorWinName(win) " is not geting indentified for IPrivateView1.ICOntextElement (where V iew1 is the view frm whose init method i m calling this window .)

wdContext.currentContextElement().setVa_VendorWinName(win);

Plz come back with some solutions soon.

waiting for ur reply

Regards

Smita

Former Member
0 Kudos

hi...........that was a little confusion....i'd not done the context mapping of my window with the context of my view .

Its resolved now.....

But one problem is still left -

1. I am calling this pop up from an empty view .

2. So when my external window pops up , i shouldnt be able to close that empty window unless i click on the "ok" button of the external window .

This Is the MAJOR PROBLEM -

Kindly help and give me a solution .

waiting for ur reply!!

Regards

Smita

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi........can someone plz comeup with any solutions for my requirement??

Waiting for replies..

Former Member
0 Kudos

Hi,

Do you want the IE maximise and minimize shld not work ?

Regards

Pankaj Prasoon