This topic is locked

Open Add Page pre-loading información from a selected record

5/24/2022 7:31:56 AM
PHPRunner Tips and Tricks
P
Pedro Rojas author

Hi,

I want to implement a functionality where the user select a record in the List Page, click on a Custom Button, and open the Add Page preloading all or some data the in the form according the selected record.
I dont wan't to duplicate the field in the table after click the button (it's easy). Just I want to open Add Page and wait user edits and save action to proceed with the INSERT.

Is there a recommended way to implement this?

Thanks.
Pedro.-

admin 5/30/2022

In PHPRunner you can use getCurrentRecord() function. You can save the current record data in session variables and use those session variables as default values of those input fields.

Runner.displayPopup() is a function that allows you to open any page in a popup.

Also, it sounds like you are describing the built-in Copy function, it might be easier to use.