Support Article
Button OnClick event action obtains previous WorkPage context
SA-97988
Summary
A button is configured with an OnClick event that invokes the Finish Assignment action. This action retrieves and runs on the pyWorkPage which does not have the updated values that are set on the current screen where the button resides. As a result, the Pega case skips the required Validations and is resolved with the old values.
Error Messages
Not Applicable
Steps to Reproduce
- Create a section or a page with radio buttons, text input, Text Area fields, and a Submit button.
- Invoke this page through a flow action. The Text area value is prepopulated based on the property value.
- Configure the Text Area field as a mandatory or a required field.
- On the Text Area field, add an onChange - post value.
- On the Submit button, add an onClick event with three or four actions (run data transform, run activity, and so on).
- Set the Finish Assignment as the last action in the action set.
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
Perform the following local-change::
- Use a new property for the Text Area.
- Set the default value for the Text Area.
- Set the property value to an existing property in Actions.
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.