Posted: 15 Jun 2020 14:38 EDT Last activity: 16 Jun 2020 16:52 EDT
Displaying count of filtered fields for a Data Page Grid (sourced with Report Definition)
we have a requirement to display the count of all visible rows for the "My Work Items" on top of the table.
This count should be updated based on the filters applied by the user...
This is how the table looks in the DEV studio
As you can see it's sourced from a Data Page (List) that is using a Report Definition...
I tried the methods that were mentioned in previous forms (ex. creating a value label property and pasting this <%=(tools.getParamValue("totalRecords"))%>) however that didn't work for this particular case... I've also tried adding (<pega:reference name='param.totalRecords'/>) to the label but with no luck either
I see I could add a Header/Footer section to the table.. I was wondering how to customize one of those to display the count of the rows... your help would be appreciated
You seem to be using a datapage as a grid source. In that case, I don't think, pxTotalResultCount exists in clipboard for that specific datapage.
Param "TotalRecords" should make more sense in this case. I just tried using a label control with this <pega:reference name='param.totalRecords'/> in header/footer and it works fine when I filter the data in Table/Grid.
How it looks like
You can add this label in header/footer. And there's absolutely no need to add anything in pages and classes in this case. Let me know if this helps.