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

Value on the grid is lost when the current row is refreshed

SA-71942

Summary



Values are entered in the fields, in the repeating grid, to post them to the Clipboard and the current row is refreshed on change of the field. However, the value entered initially does not display on the UI and is not posted to the Clipboard.


Error Messages



Not Applicable


Steps to Reproduce

  1. Configure a grid with input fields.
  2. On the fields, configure an onChange to refresh the current row.


Root Cause



When an editable control is used any where in the section, it is registered on the server. This is because any form submission from that section can be mapped to one of the registered controls. The process of registering controls takes place during generation. In this case, the registration of the controls is affected. 
The theory is that another table layout or a repeat layout is present which is bound to the same page list as the grid where the issue occurred. This other layout interfered with the registration done by the controls in the current grid layout, hence resulting in the issue. By defer loading the grid layout independently, the runtime execution of this grid from the rest of the sections occurs separately and hence allowed the editable property registration to occur independently.


Resolution



Perform the following local-change:
  1. Add the grid in a dynamic layout (if it is not already inside one).
  2. In the dynamic layout's Property panel, check the 'Defer load contents' option.

Published May 22, 2019 - 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