Page 1 of 1

Let user select number of records per page in table view

Posted: 2019-07-16 09:46
by fbrano
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?

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

Posted: 2019-07-17 10:42
by onoehring
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

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

Posted: 2019-07-18 13:23
by fbrano
Thank you Olaf. Who can translate it into code?