Question
Zensar Technologies Ltd
IN
Last activity: 18 Mar 2024 5:28 EDT
Can we use Savable Data Page to Save Multiple records?
Hi, Can we used Savable Data Page to save list of records present in Table? If yes, how we can achieve this? Thanks,
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 18 Mar 2024 5:28 EDT
Bits in Glass
IN
@AbhishekC1725 yes it's possible. You need to use activity in savable dpage to save list of records. Please check below url.
Pegasystems Inc.
IN
@AbhishekC1725 No, the Data Page can be used only to save a single record at a time, This is because to save multiple records at a same time you need to have a loop function, Which is not available in a data page rule Hence you can use a activity rule to save multiple records at the same time Thank you !
Aaseya IT Services Pvt Ltd
SA
A Savable Data Page is typically used to store data for a single record.
A Savable Data Page is designed to hold data for a single record, and it cannot directly store multiple instances of records.
Maantic Inc
IN
Perhaps this following link will be useful for you:
https://support.pega.com/question/how-save-set-records-using-savable-data-page
Evonsys
IN
Yes you can configure a DP with list structure as saveable DataPage.You can populate the saveable DataPage using source Data Transform from another pagelist.
As save plan you can use an activity to loop over the Datapage and perform save
Accepted Solution
Updated: 18 Mar 2024 5:28 EDT
Bits in Glass
IN
@AbhishekC1725 yes it's possible. You need to use activity in savable dpage to save list of records. Please check below url.
Zensar Technologies Ltd
IN
@Anoop Krishna Hi Anoop, Thanks for response. Just want to confirm the steps that we need to write in this Activity.
So, In activity we directly loop this savable List structure Data Page and inside child steps we do page-new, property-set, call save, and commit, and page remove. Or in any other way we write activity for implementing this, where we can directly save data page using Save datapage method ?
Bits in Glass
IN
@AbhishekC1725 that wouldn't be possible. Because savable dpage can't get the context of all the records at a time, we just need to provide the context of each record inside savable dpage and save it. Advantage is we can have the source data and data required to be saved in the savable dpage.
Zensar Technologies Ltd
IN
@Anoop Krishna Ok, Can you share high level steps that we need to put in activity. That will be really helpful.
Bits in Glass
IN
@AbhishekC1725 sure please check the bottom of this below url.
https://onestoppega.com/data-modeling/savable-data-page-in-pega/
You need to have just 4 steps.
1.Copy it to another custom page
2. The loop that custom page. PxResults and use ootb Save activity .
3. Property remove
4 page remove.
That's it.
Zensar Technologies Ltd
IN
@Anoop Krishna thank you so much