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

user variable set by the groovy rule that runs on form load doesn't reflect till form refresh twice

Received Response

We are using operation.application.setUserVariableValue() method in EPM Cloud Groovy rules Java API, to update one of the user variable 'Prior Scenario' which is used in web form definition.

This groovy rule is attached to a webform where this user variable is defined and it runs before load. On load if rule updates this user variable value to a new value and in webform this new value will reflect only after form was reloaded twice.

This is what happening:

1. While loading form for the first time, groovy rule run and updates user variable with new value(let's say earlier it is S1 and we are updating it to S2) and on the form we have defined this user variable to displayed in one of the column which shows as S1 for the first time

Howdy, Stranger!

Log In

To view full details, sign in.


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