How to write Data Transfer for copy single record from one table to another table

Hi Everyone,

My requirements is copy single record from one table another table when radio button is selected.

My first table having datapage is source.

Please Check Below Image

Hi @NagarjunaS16644648: You can define a on-change action for the radio button and run a activity to save the record to your target table using Obj methods (create a new page of target class, map the values from primary page to the new page created, save the new page).

Suggestion: Performing these actions on radio button may not be efficient because there is a chance that user may click on the radio button randomly. Instead of radio button, simple button with proper label should be a better option.

Thanks.

@NagarjunaS16644648 yes, if you want to save multiple records instead of radio button you can keep checkbox for each row and let user click on add. In both the cases on clicking on Add button, you need to capture that data and save it to data table using savable data page. If its radio button, you can create a property to store index,(selecteditemindex), On selecting that record, you need to set pxListsubscript to new property. You can indexinpagelist also to directly get the index. Now on add button, copy that index data to savable data page and save it.

@Anoop Krishna But the datapage is connect Rest Data page

@NagarjunaS16644648 ok. It’s better not to directly refer connect rest dpage to UI. Better to copy it to pagelist, or use sor pattern or snapshot pattern or copy data list to another editable dpage list and source that to table.

But whether it is, now it’s a pagelist which is been displayed in the table. You can set the index to a property and on add button, copy that records to a savable dpage by dpage. Pxresults(yourindexprop) ans then save that savable dpage

Copy data from datapage to page list