on 10-17-2007 5:23 PM
Hi,
I am creating a popup using this code :
IWDWindowInfo myWinInfo = wdComponentAPI.getComponentInfo().findInWindows("WindowName");
IWDWindow myPopupWindow = wdComponentAPI.getWindowManager().createWindow(myWinInfo,true);
myPopupWindow.setWindowPosition(500,500);
myPopupWindow.open();
I need to come out of this popup when i click on a button in this popup.
Can someone tell me how to do that??
Thanks,
Sneha Singh.
Do you need create an attribute in a context of custon controller. Ex: windowPopup. Then you map this attribute with principal view and popup view.
Put this code to open popup:
IWDWindowInfo myWinInfo = wdComponentAPI.getComponentInfo().findInWindows("WindowName");
IWDWindow myPopupWindow = wdComponentAPI.getWindowManager().createWindow(myWinInfo,true);
myPopupWindow.setWindowPosition(500,500);
myPopupWindow.open();
wdContext.currentContextElement().setWindowPopup(myPopupWindow);
And this code to close popup:
IWDWindow myPopupWindow = wdContext.currentContextElement().getWindowPopup();
myPopupWindow.destroy();
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 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.