on 09-27-2008 8:39 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
Hi........can someone plz comeup with any solutions for my requirement??
Waiting for replies..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.