Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Create a section or a page with radio buttons, text input, Text Area fields, and a Submit button.
  2. Invoke this page through a flow action. The Text area value is prepopulated based on the property value.
  3. Configure the Text Area field as a mandatory or a required field.
  4. On the Text Area field, add an onChange - post value.
  5. On the Submit button, add an onClick event with three or four actions (run data transform, run activity, and so on).
  6. 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::
  1. Use a new property for the Text Area.
  2. Set the default value for the Text Area.
  3. Set the property value to an existing property in Actions.

Published December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us