Update Property

I’m using a page list property to fetch the data from datastore, I have a requirement whenever database table values are updated the page list property in Pega needs to be updated automatically with the values from datastore table for that properties

@SatishNemala

You can run a declare trigger on the table class where on a committed save will trigger an activity that will update the pagelist property.

@SohamM95 , Hi Is there any specific activity to call for update the page list

Thanks in advance

@SatishNemala

You can use AppendToPageList utility, but you have to run it in a loop as it appends a single page per run. Instead of that you can create your own logic to populate the list from a data page that is sourced from the datastore.

@SatishNemala

Hi,

In Page list Property type click the option “Refer to DataPage” and call the Data Page of type list in the data page field option.

Every time when we call the page list property in UI, pega will automatically fetch the updated data from the table with the help of the list data page which we have called in the property.