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

Unable to expand grid row after validation error

SA-63525

Summary



A repeat grid is configured with the expand or collapse option. On submitting properties in the grid with invalid values after collapsing the row, error messages display. Hence, unable to expand the row.


Error Messages



Please correct current errors to perform this action.




Steps to Reproduce

  1. Configure a repeat grid to expand or collapse a row.
  2. Configure an Integer type property in the grid.
  3. At runtime, expand a row and provide an invalid value in that property field.
  4. Collapse the row.
  5. Submit the flow action. The error message displays. After the error messages are displayed, the row cannot be expanded.


Root Cause



When launching a modal (or) display the flow action for the expand pane in the grid, start with fresh page (that is, without error messages). If there are engine errors, they cannot be cleared and hence the flow action.


Resolution



Perform the following local-change:
  1. Create a non-auto generated section and add the below code:

    <script> 
    pega.u.d.attachOnload
    function(){ 
    var originalCancelModal=pega.ui.grid.prototype.collapseRowDetails
    pega.ui.grid.prototype.collapseRowDetails=function(e,container, srcElem){ 
    if(jQuery("[id='PegaRULESErrorFlag']").length != 0) return; 
    originalCancelModal.call(this,e, container, srcElem); 

    }); 
    </script>

     
  2. Add this section to the main section where the grid is configured.

The local-change modifies the changeExpandCollapseIconState function for the grids when there are errors.

Add a check before collapsing the grid for the same, if the pyWorkpage page (engine) has errors or not.

 

Published February 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?

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