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

Row visibility condition of Grid issue with Pega 7.1.6

SA-30708

Summary



When row visibility condition is added for Grid Layout to restrict few rows. Error messages are appearing twice on the UI Screen.

Error Messages

Validation error message appearing twice.

Steps to Reproduce

1. Configure repeat grid in a section.

2. Add a visibility condition on grid layout to restrict few rows.

3. Run the flow and observe that the validation error messages are appearing twice.

Root Cause


 
    Condition was getting fulfilled for both the layouts “GridNoResultsOnFiltering” and “GridNoResultsOnLoad”. Thus validation error

    messages was getting displayed twice on the repeat grid as they are loaded from both the layouts.

Resolution



Perform the following local-change steps:
 
1.    Add below visibility condition on Dynamic Layout properties of “GridNoResultsOnFiltering” layout. 
Conditon(expression ) :- param.pyGridFilterCriteriaPage != '' && param.showOnLoadMsg != 'showOnLoadMsg'
 
2. Alternatively, user can modify the section as below(It will help in internatlisation):- 
  1. Add two dynamic layouts “GridNoResultsOnLoad” and “GridNoResultsOnFiltering” with below visibility conditions on Dynamic layout properties
 

 
  • “GridNoResultsOnLoad” :- param.showOnLoadMsg == 'showOnLoadMsg'.
 

 
 
  • “GridNoResultsOnFiltering”:- param.pyGridFilterCriteriaPage != '' && param.showOnLoadMsg != 'showOnLoadMsg'.
 
  1. Add two labels respectively in above created layouts. That is, “GridNoResultsOnLoad” and “GridNoResultsOnFiltering”
 

 
  1. Field Value can be created for above label to make error message dynamic instead of plain text. It will also help in internationalisation.
 

 

 

 

Published December 1, 2016 - 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