You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Groovy - Issue passing variable between templates within the same job

in Planning 16 comments

Hello

I have Issue passing variable between templates within the same job.
In GroovyValidationReport I got error:

The Groovy script failed to compile with internal error: Compile Error:No such property: strCalcScenario for class: groovy.lang.Binding

As a background

  1. I have main script rule Dataform_processing which is run after user save custom form in Planning.

Within this script we call first template which is called G_Declarations.

// Creates lists and strings of edited members for calculation
%Template(name:="G_Declarations",application:="MGMT",plantype:="INPUT",dtps:=())

2. In G_Declarations template we define all different variables (let's look only on this one from error, variables called strCalcScenario but we have the same error for other too)

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!