Hi all,
I have an application that executes from UWL and I want to close it when the user executes some actions. I have this working in NW 04s with the following code:
try {
String url = WDURLGenerator.getWebResourceUrl(wdComponentAPI.getComponent().getDeployableObjectPart(),
"close.html");
TaskBinder.getCurrentTask().getClient().sendRedirect(url, 0);
} catch (Exception e) {
manager.reportMessage(IMessageDatos.ERROR_BAPI, new Object[] { e.getLocalizedMessage() });
logger.catching(e);
}
The close.html is an HTML with JAVASCRIPT code to close the browser.
When migrating this application to NW 7.3 the TaskBinder class is not available.
I already try with
WDProtocolAdapter.getProtocolAdapter().getResponseObject().encodeRedirectURL(url);
And with the exit plug of the interface wiew and does not work.
Any suggestions?
Regards,
Gregory.