Rows added to repeat grid appear even after form is cancelled
SummaryOn 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 MessagesNot Applicable
Steps to Reproduce1. 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 CauseOn 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.
ResolutionThe issue is resolved after adding the action "Refresh section" with "disable submit on Refresh" for "Add row" event in the grid.
Published June 12, 2017 - Updated July 27, 2017