You need to sign in to do that
Don't have an account?
Sai Laasya
apex page attribute readOnly
Hi,
I am using a vf page for downloading a list of records on button click as an excel sheet. To enable more than 1000 records, I have added readOnly="true" for the vf page. But the attribute doesn't seem to work. Is there anything else I have to do to overcome "Collection too large" error. Please help.
I am using a vf page for downloading a list of records on button click as an excel sheet. To enable more than 1000 records, I have added readOnly="true" for the vf page. But the attribute doesn't seem to work. Is there anything else I have to do to overcome "Collection too large" error. Please help.
use above code, don't use readOnly="true"
Could you post a little bit of your controller and visualfore page? I can assure you that "readOnly" works as intended generally speaking, so there must be some nuance with your work that is causing it to bug out! We can't begin to speculate without seeing how your page works though :)
On clicking which an export method is called from the controller.
I have pasted below the <apex:page> tag from my second vf page which is actually throwing the error
Note: the QueryItems() method returns a list of records whose size exceeds 1000.
That method on line 6, is on the first page - with the button? That also needs to be read only if you want the list "lstpri" to contain > 1000 items.