This topic is locked

Guide 26 - Management of selected records of List page

10/28/2021 11:13:14 AM
PHPRunner Tips and Tricks
fhumanes author

This example is quite simple but it seems that phprunner developers, in some cases, it costs us to remember how easy the product does to treat the records that we have previously selected on a list page.

The example aims to register if a record has been archived or not, with which it updates a field in the registry with this information and also creates a record in the archive table, with the information of the original registry.

For example I have set up these requirements:

  • The selected record will be updated, indicated that the record has been "archived" and a copy record of the previous one will be created, in the "Archived" table.
  • 2 buttons will be created for "Archive" and another "de-archive" that does the opposite operation.
  • The operation will not be done if the records are in the state that is requested must remain.

Objective

Facilitate compression and dispose of an example for the treatment of selected records on a List type page.

Demo: https://fhumanes.com/guia26

If you want more information and get the example code, you keep reading the article.