on 08-18-2009 6:28 PM
Hi,
we have a close button in the view. once the user clicks on the button it should close the window .how to proceed on this?
Regards,
Pavani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi pavani,
Use this code,
IWDWindow Window =wdComponentAPI.getWindowManager().createModalWindow(wdComponentAPI.getComponentInfo().findInWindows("Your window name"));
if(Window != null)
{
Window.destroy();
}
Refer this blog also [Blog|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20d2def3-f0ec-2a10-6b80-877a71eccb68?overridelayout=true]
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you want to navigate to a particular screen after you press exit button then do lilke this.
1.Create a Button called Exit.
2.Create an action for this button.
3. In the event handler for this button, write the following code:
String Url;
try {
Url = WDURLGenerator.getWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"close.html");
wdThis.wdGetAtpEmpDetailsWinInterfaceViewController().wdFirePlugExitPlug(Url);
} catch (Exception e) {
wdComponentAPI.getMessageManager().reportException("Technical Exception occured in the application : " + e.toString(), true);
}
4.Create a html page called u201Cclose.htmlu201D with Javascript code for closing a browser window.
5.Place this html page in SRC -> Mimes -> Components -> Project Structure(Create this folder and place the html page in this folder)
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
you can hide the window or can destroy instance of window by using following sample code
IWDWindowInfo winfo=wdComponentAPI.getComponentInfo().findInWindows("NameOfIview");
IWDWindow window1=wdComponentAPI.getWindowManager().createModalWindow(winfo);
window1.hide();
window1.destroy();
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You need to destroy the instance of the window on action of close button.
IWDWindow window = wdContext.currentPopNodeElement().getPopAttribute();
window.destroyInstance();
OR you can set this visibilty Inbvisible of the iview.
Hope it help you do solve ur problem.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello
For closing the window,you can display an empty view so user will not be able to see any UI element.
Thanks and Regards
V.S.Shetty
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 | |
24 | |
11 | |
9 | |
7 | |
6 | |
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.