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") …..)