You need to sign in to do that
Don't have an account?

SOQL to show next and previously added data
How to write SOQL to show next and previously added case data. How can i fetch record according to created date. What would be the SOQL to fetch data.
Please check below.

Please check below.
You can add order by createddate clause to your soql. This will hold the orderd list of case.
Now you can use list.get() mrthod to get the reuired record Thanks,
N.J
If you want to use pagination on your page then refer below link
http://forceguru.blogspot.in/2011/04/pagination-in-salesforce.html