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

Rows added to repeat grid appear even after form is cancelled

SA-39247

Summary



On a modal dialog form, when few rows are added to the repeat grid layout and the form is cancelled, it has been observed that when the same object is reopened, few empty rows are added in the grid layout on the form. If the screen is explicitly refreshed and then if the modal dialog is launched, it contains the last saved values in the form.

Similarly when a row is deleted and the form is cancelled, when the modal dialog is launched the row seems to be deleted. Only after the screen is refreshed and the modal dialog is launched, the last saved data appears.


Error Messages



Not Applicable


Steps to Reproduce



1. Create a basic form to be launched as modal dialog which contains a repeat grid layout.
2. Add few rows and enter data and save.
3. Open the saved object.
a. Add few rows and click cancel. Open the same object again, observe that there are empty rows present.
b. Delete few rows and click cancel. Open the same object and observe that the rows seems to be deleted.
4. Refresh the screen and open the same object, observe that the data is same as that of when it was last saved.


Root Cause



On cancel action, the close action gets called and the window is not refreshed when user opens the window again because of which the changes made are visible.

Resolution



The issue is resolved after adding the action "Refresh section" with "disable submit on Refresh" for "Add row" event in the grid.

Published July 27, 2017 - 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