+ Start a Discussion
Ram chowdaryRam chowdary 

How can we display 70,000 records in vf page?

How can we display 70,000 records in vf page?

I hope its not possible becuase the limit for vf page is 10,000 records, Is there any other work around for it, If so please help me
udayarangareddy mekalaudayarangareddy mekala
If u want to display more than 10000 records on VF page,go head and use the Readonly = true attribute in <Apex:page> tag
Ranga
Vishal Negandhi 16Vishal Negandhi 16
You can use Pagination for this purpose. 
Practically thinking, you'll anyway not want 70000 records on a single screen. 
Chandra Prakash PandeyChandra Prakash Pandey
Hi Ram,

You can do this using List of List. Just have a look the given code:

Apex Code
List<List<String>> myNestedStringList = new List<List<String>>();
Integer i=0;
List<String> currentList = null;
for(sObject sobj : sobjectList){
    if(Math.mod(i,10000)==0){
        currentList = new List<String>();
        myNestedStringList.add(currentList):
    }    
    //Add string to inner array
    currentList.add(sobj.Name);
    i++;
}
VF Page
<apex:repeat var="outerList" value="{!myNestedStringList}">
    <apex:repeat var="myStr" value="{!outerList}">
        <apex:outputText value="{!myStr}" />
    </apex:repeat>
</apex:repeat>
Let me know, If it helps.

Regards,
Chandra Prakash