explain Best practice of calling data page in activity

Hi Guys I’m to new pega please explain me about best practice of calling a data page in activity?

@SaiK6181

The answer can vary based on, what is the purpose of calling Data Page for?

For Example : if you are using it just to query some result set from the table to reference in your activity, You can directly refer the Data type (Pass parameters if it parameterized data page) and loop over pxResults and do you business logic on top of that.

if you want specific result out of the data page, It is better to use look up data page rather than list.

If you want to update the Data in the table, You can use Save DataPage method to dump data in table