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.
"Page 1 of X" on Subfile Grid Paging Bar
-
- New User
- Posts: 10
- Joined: Tue Oct 09, 2018 4:34 pm
- First Name: Francis
- Last Name: Calizo
- Company Name: Banyan Air
- Contact:
"Page 1 of X" on Subfile Grid Paging Bar
- Attachments
-
- Screenshot (178).png (5.07 KiB) Viewed 420 times
- matt.denninghoff
- Profound Logic Staff Member
- Posts: 115
- Joined: Wed Feb 10, 2016 3:53 pm
- First Name: Matthew
- Last Name: Denninghoff
- Company Name: Profound Logic Software
- State / Province: Ohio
- Country: United States
- Contact:
Re: "Page 1 of X" on Subfile Grid Paging Bar
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.
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.
Who is online
Users browsing this forum: No registered users and 2 guests