Let user select number of records per page in table view

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
fbrano
Veteran Member
Posts: 33
Joined: 2018-03-19 10:39

Let user select number of records per page in table view

Post by fbrano » 2019-07-16 09:46

As is known default nuber of records per page is able to set before application compilation.

Is it possible to implement some selection list with values 10-50-100-500 at the button of table view and let the user choose number of records per page?

onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 298
Joined: 2019-05-21 22:42
Contact:

Re: Let user select number of records per page in table view

Post by onoehring » 2019-07-17 10:42

Hi fbrano,

nice idea. As a quick hint:
I checked on a long table in an application. The switch to jump to a different page gives us an idea how it might be done (might be easier somehow)

Code: Select all

..... document.myform.FirstRecord.value=(this.value * 50+1)  ......</select>
The 50 is the value of records I set initially. You should be able to add a textfield (dropdown) to the page using jquery which shows/holds the number of records. When the user changes this, submit the form using this new value instead of 50 (above) with the same method. Also change the 50 (in my example) to select a variable (the value) from your textfield/dropdown.

Sorry that I can not present any code ;-)

Olaf

fbrano
Veteran Member
Posts: 33
Joined: 2018-03-19 10:39

Re: Let user select number of records per page in table view

Post by fbrano » 2019-07-18 13:23

Thank you Olaf. Who can translate it into code?

Post Reply