You need to sign in to do that
Don't have an account?
sobject
Looking for VF pagination controls used by Reports
When you go to the "Reports" tab and create a custom report, then run the report - the report has pagination controls at the bottom - image buttons for first/next/prev/last and setting records/page. Are these control available to VF developers to use programmatically?
(I would have attached a screen shot, but I see no way to do so here except to upload to another server and provide a link.)
I have blogged this here : http://forceguru.blogspot.com/2011/04/pagination-in-salesforce.html
Hope this will help.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
All Answers
I have blogged this here : http://forceguru.blogspot.com/2011/04/pagination-in-salesforce.html
Hope this will help.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
Ankit,
That's the best solution I've seen so far, however, I forgot to mention, I need to be able to jump to a particular page of the results. I tried using StandardSetController.setPageNumber(aPage) but it just reloads the first page. This is very helpful, though - thanks!
Ankit,
Also, although your implementation is very helpful - my original question was that I was looking for the control that SFDC uses for their Reporting/views output, as shown in this screenshot:
After digging around, I can see this is probably a native javascript implementation i.e. there's a javascript class called "Paginator", as well as some CSS tricks to render the control images from a single image:
/img/paginationArrows.gif
common.css:
...but more importantly, it has the ability to jump to a specific page number. I don't know why SFDC forces developers to "roll their own" when they could just make this control available for Visualforce developers (unless VF is not feature-rich enough, in which case they resorted to native javascript)