on 04-15-2008 8:32 AM
hi,
actually,i created 1 table and action and bind this action to the property of table i.e onLeadSelect.on selcted any row that action performed,now i want that when i select another row,the window opened by selcting first row should be closed and again new window is open.
if anyone have code regarding this,plz reply.
Hi Abhilasha,
Can you tell me how are you opening popup?
1.when you open a pop up control goes to recentlly opened popup window.
2. So you'll never able to select any record of your table unless you close this popup window.
3. so first close popup window by giving a close button or by any means.
here is one hint
if you are using any context in this process then
do as following.
1) create a context Ctx_va_window in controller and map it to both main view where your table is and in popupview
when you pop up window
IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PopUp");
//get information of window in controller context
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
window.setWindowPosition(WDWindowPos.CENTER);
window.open();
//store information of window in controller context
wdThis.wdGetAppController().wdGetContext().currentContextElement().setCtx_va_window(window);
2. Then you can destroy this pop using
wdThis.wdGetAppController().wdGetContext().currentContextElement().getCtx_va_window().destroy();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would never open a popup window on a selection change event.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Make a value attribute(windowInstance) of type IWDWindow.
for closing the open window write this:->
IWDWindow ins=wdContext.currentContextElement.getwindowInstance();
ins.destroyInstance();
Regards
Trilochan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
get your Window Instance; destroyInstance() will hide the window if it is open.
you can call this method before showing the window
IWDWindow popwindow;
...
popwindow.destroyInstance();
..
popwindow.show();
nikhiL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Deprecated!
Edited by: Vinod V on Apr 15, 2008 1:41 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.