on 05-10-2011 6:41 AM
HI,
i have an iview which i was opening as an external vindow. now my issue is need to close this iview using a close button. can any one
Hi,
Please provide your SAP NetWeaver Version and SP Level .
Thanks
Gautam Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI JEGADHEESAN,
For SAP NetWeaver 7.0, you can perform the following activities step by step:
1.Create close.html file and write javascript code for closing window.
2.Place this close.html in \src\mimes\Components\<component_name>\
3.Create CLOSE button in view and assign corresponding action (e.g. onActionClose)
4.Now write code for closing external window (i.e. Web Dynpro Window).
public void onActionClose(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionClose(ServerEvent)
try {
String URL = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"close.html");
TaskBinder.getCurrentTask().getClient().sendRedirect(URL, 0);
} catch (WDURLException e)
{
e.printStackTrace();
} catch (IOException e)
{
e.printStackTrace();
}
//@@end
}
Thanks
Gautam Singh
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.