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

Cancel button in modal dialog does not work correctly

SA-64544

Summary



Cancel button in modal dialog does not work correctly.


Error Messages



Not Applicable


Steps to Reproduce

  1. Configure a button.
  2. OnClick of the button launches a local action.
  3. In the configured local action, a grid with progressive pagination is configured with the data source as the datapage and a checkbox in the grid.
  4. At runtime, when the modal dialog is launched, select a few checkboxes.
  5. Click Cancel.
  6. Launch the modal dialog. The checkboxes are still selected.


Root Cause



This behavior is as per Pega product design.


Resolution



Perform the following  local-change:

On click of the Cancel button invokes the pyModalPageCancelAction activity which is an Available rule. Embed logic according to the below solutions.

Solution 1:

Perform the following to clear all the edited datapage values..

  1. Use FlushDeclarativePage activity.
  2. Send the datapage as a parameter to the activity.
  3. Modify the Java step of FlushDeclarativePage activity to handle multiple datapage values.

Solution 2:

For checkboxes, iterate over the datapage results and set the checkboxes to false.

 

Published October 13, 2018 - Updated October 8, 2020

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