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

Sorting on a grid using PageGroup as a source is not supported

SA-2244

Summary



Configure a repeat grid with PageGroup as a source and enabled sorting on the columns. It throws the below error:

Error Messages


 
pyGridSorting:** Sorting is not supported for Page Group

Steps to Reproduce



1. Create a PageGroup property.
2. Use it in a section and configure a repeat grid.
3. Enable sorting and save the section.


Root Cause



This is an expected out of the box design (OOTB) behavior. When we save a section, it trigger the OOTB function pzValidateSectionIncludes where it checks the below code that generates error. 
 

if(propertyInfo.isModePageGroup() && bGridSortingEnabled)
{cp_gridProps.getProperty("pyGridSorting").addMessage("Sorting is not supported for Page Group");

 

Resolution



If sorting is mandatory we can use PageList. The below article in PDN also tells more on "How to Process Select Elements from a Page Group in a Specified Order"

https://pdn.pega.com/data-management/how-to-process-select-elements-from-a-page-group-in-a-specified-order

 
 
Suggest Edit

Published January 31, 2016 - 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