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

Blank row continues to display despite its deletion

SA-56121

Summary



Blank row continues to display despite its deletion.


Error Messages



Not Applicable


Steps to Reproduce

  1. Add a row repeat layout. Add a '+' icon with Add Row action.
  2. In the row repeat layout, add a delete icon with Delete Row action.
  3. On the Flow-action Post Activity, add a validation to check Null entries in the grid.
  4. Run the case. Click the '+' icon to add a blank row.
  5. Submit the case. Validation is triggered for Null fields.
  6. After validation, the grid row displays validation error details.
  7. Delete the row.
  8. Submit the case. The deleted row is visible in the row repeat layout.


Root Cause



A software use or operation error.

The section with row repeat layout, included another row repeat layout which had the same source as the first layout. However, the second row repeat layout did not display (invisible) due to the visibility condition set. In the Document Object Model (DOM), the page list was the same as in the first row repeat layout. The row was added in the page list and was displayed in the row repeat layout. Additionally, the same was changed in the invisible row repeat layout as part of a Refresh action.

When the row was deleted from the visible repeat layout, API removed the row from the page list. From the DOM, the row was removed only from the visible repeat layout. The corresponding row from the invisible row repeat layout was not deleted (the stale row was still present). Hence, the row of the invisible row repeat layout was not impacted and included the stale row.

During submission for validation, the input fields of the invisible row repeat layout were validated. As a result, the rows were retrieved to the Clipboard and the UI (as part of the visible row repeat layout).

Row repeat is a deprecated layout. When the visibility condition was added, DOM was generated with display:none CSS style, and the ‘If’ condition was set to false. This caused ambiguity with the visible and invisible row repeat layouts with the same source.


Resolution



Perform the following local-change: 
  1. Add the row repeat layout(s) in a Dynamic layout.
  2. Add the visibility condition on this layout. If the condition is false, the row repeat layout is not generated in the DOM.
Suggest Edit

Published July 24, 2018 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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