on 07-29-2009 11:24 PM
Dear,
I have an exit plug in my interfaceviewcontroller that to be called via code (runtime) does not redirect to the url and when called by event (button click) it works perfectly!
This code is same in both calls:
//@@begin Redirect()
try
{
String appName = "XYZ";
String deployableObjectName = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
WDDeployableObjectPart deployableObjectPart = WDDeployableObject.getDeployableObjectPart(deployableObjectName, appName, WDDeployableObjectPartType.APPLICATION);
String urlToTargetApp = WDURLGenerator.getApplicationURL(deployableObjectPart);
this.messageShow("[Controller.applicationRedirect]: urlToTargetApp = " + urlToTargetApp, MessageType.reportDebug, null);
wdThis.wdGetXYZWindowInterfaceViewController().wdFirePlugStartAppExit(urlToTargetApp);
}
catch (WDURLException e)
{
this.messageShow(e.getLocalizedMessage(), MessageType.reportException, e);
}
catch (WDDeploymentException ex)
{
this.messageShow(ex.getLocalizedMessage(), MessageType.reportException, ex);
}
//@@end
Any suggestions on what might be happening?
HI,
The Parameter for exit plug in InterfaceViewController is case sensitive. It should be "Url" . Make sure about it.
Regards
Ishita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.