Closed
Limit threshold for Page List
I have a data object called "Person" that is a Page List data type.
How can I set the threshold on this page list to limit the number of "Person"s in the list?
Thanks
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
I have a data object called "Person" that is a Page List data type.
How can I set the threshold on this page list to limit the number of "Person"s in the list?
Thanks
Hi there,
There are multiple ways to define the threshold for the Page list. Threshold can be defined while generating the Page-list or define the threshold limit up-front and generate the list.
Could you be more eloborate about your requirement?
Cheers,
Naren
Naren,
I have multiple Page Lists and need to define the threshold differently for each one.
I have read where you can define the threshold in the prconfig.xml file, but that will not work for us due to needing to define different thresholds for different Page Lists.
Thanks
Agreed mate.Usually environ variables does define the threshold limit accross the application.But, in your case it is different from Page list to Page list.
For your reference, here is the snipet in environment variable looks like
For Enable of threshold:
<env name = “alerts/clipboard/listsizethreshold/enabled" value="true" />
For Warnsize:
<env name = “alerts/clipboard/listsizethreshold/warnsize" value="10000" />
For warntraceback:
<env name = “alerts/clipboard/listsizethreshold/warntraceback" value="false" />
For errorsize:
<env name = “alerts/clipboard/listsizethreshold/errorsize" value="1" />
I would suggest you to draft a reusable component and call after each Page list generation.
This component should accept two params
1. Page list name
2. Thresshold limit
Component should check the size of Page list against threshold limit and if list cross the threshold limit, post a WARN level alert message in the log.
I wouldn't say this is best approach, but an approach you can consider.
Cheers,
Naren
Question Solved
Question
Question Solved
Question
Question
Question
Question
Question
Question
Question Solved
Pega Collaboration Center 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.