9
Views
8
Comments
Solved
Ability to show pre-defined number of records per page

Hi newbie here, I want to be able to give a user the option to choose how many records are displayed on a screen, so they can choose 10, 20, 50 per page, what is the best way to accomplish this?  Default would be 10.

Rank: #70
Solution

Hi Peter,


What you can do is to have a dropdown with a list / query with the options you want (10, 20, 50) binded to the MaxRecords variable and with the OnChange linked to the screen action you use to refresh the query.

Something like that:


In this way, you allow the user to control the value of the MaxRecords variable through the Dropdown widget.


Regards,
João 

mvp_badge
MVP
Rank: #2

Hi Peter,

The number of records displayed can be specified in the Widget that you're using (e.g. a Table Records). If you use a variable, and change that depending on some user selection, and refresh the Widget (only for Traditional Web App), you should see a different number of records displayed.