If Condition with a Range or Substitution variable Groovy Script — Cloud Customer Connect
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

If Condition with a Range or Substitution variable Groovy Script

Summary:

Hi ,

We have a substitution variable SSClosedWeeks which has a value of OEP_W1:OEP_W39. This variable works perfectly in member formulas.

I would like to use this in Groovy Rule on the form to make Forecast Input Read Only for the range of weeks 1 - 39.

Can we use the subvar in If condition?

If that's not possible, can we use it as a range —> if(it.getMemberName("Period") IN "OEP_W1:OEP_W39" )

Currently, it's working only when i use like —> if ( (it.getMemberName("Period") == "OEP_W1") || (it.getMemberName("Period") == "OEP_W2") ||

(it.getMemberName("Period") == "OEP_W3") …..)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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