table grid save all rows button

Hi All,

We are using Pega 7.3.1. We have a table grid sourced by Report definition. We can edit the rows of the grid.

  1. We need to keep a Save button on click of that button all the rows should be save to the data table.

Please let me know How to achieve this.

  1. Is it possible to only save the modified rows in the grid to data table?

Thanks in Advance

Sahhul

@Sahul On 7.3 you should use the SaveDataPage concept similar to 8.

Using ReportDefention for this scenario was not advisable. Please try to use the RD inside a DataPage and source for the grid.

This will be easy to capture the data edit. To implement have a button in UI with action “on click” perform the following actions.

  1. Loop the Table Source (D_DataPage.pxResults)

  2. Inside loop use Property-set (or) Datatransform to get each row record with the step page of DataTableClass.

  3. Try Obj-Save of each record with steppage as DataTable Class

“Save only the modified row” is possible by placing a flag at each row & on the edit of each row set the flag true. Loop the DataPage Results only if the flag is true.

The Data page should be Editable.

Hope This helps!

@MatheswaranRavi

Thank you so much for your reply this is really helpful and it working by following the approach you suggested.