function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Amol ChAmol Ch 

How to fetch more than 50 k record on VF page

I've created a VF page with Dynamic filter.
Means My SOQL is Build dynamically in controller and I'm using Standard Set controller method to return the record.
I want the page pagination to display all 70 k record on VF page.

How we can do that.. Please Guide.
Rahul_kumar123Rahul_kumar123
Hi Amol,
  • To display all records in a single page set  readonly attribute of <apex:page> tag to true , It will allow you to display upto 10000 records 

readonly : A Boolean value that enables read-only mode for a Visualforce page. In read-only mode, a page may not execute any DML operations, but the limit on the number of records retrieved is relaxed from 50,000 to 1 million rows. It also increases the number of items in a collection that can be handled by iteration components, from 1,000 to 10,000. If not specified, this value defaults to false.

 please refer the link below for further reference.  I hope it will be helpful.

BestRegards
RahulKumar

 
Amol ChAmol Ch
Hi Rahul, Thanks for your reply. I'm updating the record in apex class via wrapper class. So here readonly is true will not be the solution. Can you please suggest me another solution