You need to sign in to do that
Don't have an account?
Greg Diercks
Standard List Controller exercise
I'm finding the directions a little vague as to *exactly* where to plug in the various little sections of code that ultimately give us pagination. I think I'm just plugging stuff in the wrong location.
I think it would be helpful to have included what the final page should have looked like.
Would someone please post it here so I can see what the heck I'm doing wrong?
Thanks!
I think it would be helpful to have included what the final page should have looked like.
Would someone please post it here so I can see what the heck I'm doing wrong?
Thanks!
To associate a page with the standard list controller for accounts, use the following markup:
<apex:page standardController="Account" recordSetVar="accounts">
Standard list controller provides additional four pagination actions. Those are first, last, next and previous.
Copy paste this code in your page.
Hope this helps you out.
Thanks
Jai
Can you please mark that as solution.I will really appreciate that.
Thanks
Jai
As a common practice, if your question is answered, please choose 1 best answer.
But you can give every answer a thumb up if that answer is helpful to you.
In addition to
first, last, next and previous.
you can go to page a certain page number, get total results, etc.
Refer to this document for more info:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/apex_ApexPages_StandardSetController_methods.htm
Thanks
Hi Rachel,
Its a good point that we should add the final VF markup at the end of the unit. I'll add that to our list of content updates to make. In the meantime, here is what the final markup should look like. Hope this helps!
Sandeep