cancel
Showing results for 
Search instead for 
Did you mean: 

onselecting row open window and closing window

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

snehal_kendre
Active Contributor
0 Kudos

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();

Answers (4)

Answers (4)

Former Member
0 Kudos

I would never open a popup window on a selection change event.

Armin

Former Member
0 Kudos

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

nikhil_bose
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Deprecated!

Edited by: Vinod V on Apr 15, 2008 1:41 PM