cancel
Showing results for 
Search instead for 
Did you mean: 

ExitPlug fire by code Problem

former_member192152
Active Participant
0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

The Parameter for exit plug in InterfaceViewController is case sensitive. It should be "Url" . Make sure about it.

Regards

Ishita

former_member192152
Active Participant
0 Kudos

Note "called by event (button click) it works perfectly!"