Page 1 of 1
"Page 1 of X" on Subfile Grid Paging Bar
Posted: Fri Nov 16, 2018 5:15 pm
by fcalizo
Hi all,
Is there a way to show the number of pages of the Sub-file grid on the bottom paging bar? For example, for it to say "Page 1 of 4".
Thank you.
Re: "Page 1 of X" on Subfile Grid Paging Bar
Posted: Tue Nov 20, 2018 7:32 pm
by matt.denninghoff
Hi. There's currently no feature of the grid that would allow you to display the number of pages available.
If your grid is a page-at-a-time grid, you can make a sort of hack. You could bind an output field for the current page and another for the number of pages. Then, position those fields over the grid's paging bar. Let your RPG (or node.js, etc.) program populate those fields. Then, when a user clicks "Next", or "Prev", the page number will change. You'd need to set "show page number" to false.
If your grid is a load-all grid, you could calculate the number of pages in the RPG program based on the number of records, and you could display the number of pages in an output field. Position that field somewhere near the "Page" lable.