Sort a page group

I want to sort a page group based on a property value.Can anyone suggest a way..Thanks in advance

Forum Vote
Like
0 users voted.

January 21, 2016 - 12:20pm

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

Like
0 users voted.

January 31, 2016 - 10:09am

The PDN article is correct in that you cannot sort a Page Group. A Page Group is a Map.

If you allow the sorted list to be updated, for example in a editable Repeating Layout**, as shown in the article you would need to use the Property Reference approach.

If, however, you only need to display the sorted result read-only, you could use a Data Transform to (1) remove every element from a temporary PageList, (2) copy every PageGroup page to that temporary Page-List, (3) Sort the temporary PageList,

** Adding/removing rows with an editable Repeating Grid should not be allowed when sourced to a Property-Reference-based PageList

Like
0 users voted.