Applying Dynamic Paging
You can add paging to your dynamic data, using the paging generator included in Wappler. First, you need to create a server action: And add a name for it. We call it - records_paged: Right click steps
Step 1
Section titled “Step 1”You can add paging to your dynamic data, using the paging generator included in Wappler.
First, you need to create a server action:
And add a name for it. We call it - records_paged:
Section titled “And add a name for it. We call it - records_paged:”Right click steps:
Section titled “Right click steps:”Open Database Actions:
Section titled “Open Database Actions:”Add Database Connection:
Section titled “Add Database Connection:”Select your database connection or create a new one, if you have not defined one yet:
Section titled “Select your database connection or create a new one, if you have not defined one yet:”Then right click database connection step (1) and open the database actions menu (2):
Section titled “Then right click database connection step (1) and open the database actions menu (2):”Add Database Paged Query:
Section titled “Add Database Paged Query:”Then click the query options button:
Section titled “Then click the query options button:”Open the add table menu:
Section titled “Open the add table menu:”And select your database table:
Section titled “And select your database table:”Then select the tables you need and click the add button:
Section titled “Then select the tables you need and click the add button:”Click Ok when you are done:
Section titled “Click Ok when you are done:”Save your server action:
Section titled “Save your server action:”In app structure panel add new component:
Section titled “In app structure panel add new component:”Open Data:
Section titled “Open Data:”And add server connect component:
Section titled “And add server connect component:”Then click the select server action button:
Section titled “Then click the select server action button:”Here we select the server action with the paged database query which we just created:
Section titled “Here we select the server action with the paged database query which we just created:”Step 20
Section titled “Step 20”We add a dynamic table, displaying our records on the page. Make sure to select the data object, under database query as an expression for it:
Then, we add new component:
Section titled “Then, we add new component:”Open the state management menu:
Section titled “Open the state management menu:”And add query manager:
Section titled “And add query manager:”Step 24
Section titled “Step 24”We are going to define a query parameter, which will store the current paging state. This way the current page won’t be lost on page refresh:








































