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

Validation error in page refrains the grid from expanding

SA-34542

Summary



Validation Error in page refrains the grid from expanding.


Error Messages



Please correct current errors to perform this action.


Steps to Reproduce



1. Configure a repeat grid to expand/collapse row.
2. Configure an Integer type property referenced in the grid.
3. At runtime, expand a row, provide invalid value in the property field.
4. Collapse the row.
5. Submit the flow action. Page error messages are received.
6. Expand the grid row to observe the issue.


Root Cause



A defect in Pegasystems’ code or rules that if the field validation has been configured for the grid then it should not allow to collapse the pane of the grid and check was being done while expanding the grid pane.

Resolution



Perform the following local-change: 
  1. Create a non auto generated section and include the below code in it:
    <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. Place the section on the main section where the grid is configured
  3. Select the Enable displaying details on multiple rows checkbox on the grid Operations tab

 

 

Published 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