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
kittu9kittu9 

Displaying more than 1000 records in the vf page?

how can we show more than 1000 records in visualforce page?

bob_buzzardbob_buzzard

Use the readonly attribute - this relaxes the limit on the understanding you aren't going to make any changes to the data:

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_readonly_context_pagelevel.htm

kittu9kittu9

Thank you so much bob. I am able to display more than 1000 records after giving readOnly = "true"

 

I have one doubt may be with this displaying is possible. Is it possible to do any dml operations on these records when i given this "readOnly=true"

 

Thanks in advance....

bob_buzzardbob_buzzard

No, that's the contract - you can get more data as you guarantee not to change it.

anchoviesanchovies

Should it work for any element collection? I'm still getting 'collection size exceeds..' error for a List<String>.