You need to sign in to do that
Don't have an account?
Ishan K Sharma
Facing Heapsize And View State Issues
Hi All
I need to show thousands of records through search button on vf page. I was facing view state and heapsize issues and i resolved this by giving pagination.I provide next and previous button for this and show data in blocks of 500.
But i need to export whole data i.e all thousands of records in csv.For which i need to create a list having all the data and export it via vf page.But it again show heapsize error.
What should be the possible solution for this.
I think export functionality should be done by batch.I want to know whether it is feasible or not. Can we create vf page through batch?
Or is there any other solution for this?
Thanks
Ishan
I need to show thousands of records through search button on vf page. I was facing view state and heapsize issues and i resolved this by giving pagination.I provide next and previous button for this and show data in blocks of 500.
But i need to export whole data i.e all thousands of records in csv.For which i need to create a list having all the data and export it via vf page.But it again show heapsize error.
What should be the possible solution for this.
I think export functionality should be done by batch.I want to know whether it is feasible or not. Can we create vf page through batch?
Or is there any other solution for this?
Thanks
Ishan
I a list view you can not have more than 2000 records. I would suggest you to run a report and export it. If you wish to automate you can schedule a report and get it in email.
Refer: http://help.salesforce.com/HTViewHelpDoc?id=reports_schedule.htm&language=en_US