cancel
Showing results for 
Search instead for 
Did you mean: 

How to Hide the window?

Former Member
0 Kudos

Hi ,

How to hide the window. ????

Thanks

Risha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Following is the code to do this


IWDWindow window; // Your existing window instance
      window.hide();

Regards

Ayyapparaj

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi,

Following is the code to hide the window.

IWDWindowInfo info=(IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("CopySelected");

IWDWindow win=wdComponentAPI.getWindowManager().createModalWindow(info);

win.hide();

Here "CopySelected" is window name.

Regards,

Sunaina Reddy T

Former Member
0 Kudos

Hi Risha

In web dynpro for java there is one interface named

"IWDWindow".

First create the reference of that window just like

IWDWindow window;

then there is one method called hide() just like

window.hide();

From this u can hide window

Former Member
0 Kudos

Hi Risha,

Here is the code to close or hide the window using

findinWindow method.

IWDWindowInfo windowInfo = null;

IWDWindow window =null;

windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo).findInWindows("<<WindowName>>");

if(windowInfo!=null)

{

window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);

}

window.hide();

Hope, this will satisfy your requirement. Close the thread if it is done.

Regards

Raghu

Former Member
0 Kudos

hi!

you can hide your window using following code

IWDWindow window = wdContext.currentPopupElement()

.getWindowInstance();

window.destroyInstance();

thanks

vishal

Former Member
0 Kudos

Hi,

if you want to close the open window,

window.destroy();

Regards,

ramesh

former_member185029
Active Contributor
0 Kudos

-Sorry for reposting

Edited by: Ashutosh Moharir on Sep 24, 2008 3:23 AM

former_member185029
Active Contributor
0 Kudos

Hi,

Use window.destroyInstance() to remove window.

-Ashutosh