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

On grid expand or collapse page-set-error messages are removed

SA-62481

Summary



On click of the Save button, validation occurs and page-set error messages display in the UI. Clicking the button with OnClick local action in a modal dialog, closes the modal dialog. On expanding any row in the expandable grid, error messages are removed.


Error Messages



Not Applicable


Steps to Reproduce

  1. Add required fields in a section.
  2. Add a button (Btn1) with OnClick and launch a local action in the modal dialog.
  3. Add a table layout with Master Detail configuration as an expandable row below the button.
  4. Run the case.
  5. Without filling the mandatory fields click Save to trigger validation. Page-set-messages display in the UI.
  6. Click the button (Btn1).
  7. Expand any row.


Root Cause



A software use or operation error.

On button click, the local action is launched. On close of the modal dialog, the API reset pega.u.d.KeepMessages to false. Therefore, when the grid row is expanded as part of a Refresh action, messages are removed.


Resolution



Perform the following local-change: 
  1. Add another action on button click after launching a local action as a Run script.
  2. In the script, invoke the JavaScript function with implementation as pega.u.d.KeepMessages="true".

Published August 24, 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?

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