on 03-03-2008 12:51 PM
Hi Friends,
In my Application i have two Input Fields.
When ever i dont enter any data into those fields i get a PopUp Window "Please enter the Fields" and i have an OK Button.
When i Click on this OK Button the Window instance must be Destroyed.
But i am unable to do so.Instead when i Click on OK Button that particular Window Instance gets hanged Up,and hence i am struck there.
Then i need to refresh the page.
Please help me out to find a solution for this issue.
Thanks and regards,
Chandrashekar.
Hi
Follow the steps
In your current view where you create your Popupwindow; create a model attribute name "popWin" of type IWDWindow;
In code;after creating the popup window assign window object to the context element
IWDWIndow window = WDComponentAPI.getWindowManager().createWindow( WindowInfo, true);
wdContext.currentContextElement.setpopWin( window);
At the Popup window view; create a model attribute name popWin of type IWDWindow and map it with the one that created before.
set the code on btnaction
IWDWindow popwin = (IWDWindow)wdContext.currentContextElement().getPopWin();
popwin.destroyInstance();
This will work
Regards
- Vinod
Edited by: Vinod V on Mar 3, 2008 7:21 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Why do you require a window for displaying a validation message. Use Confimation dialog instead.
Are you sure that you are setting the window instance to an attribute while creating the window and destroying the same.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.