You need to sign in to do that
Don't have an account?
raju p 4
Collection size 10,028 exceeds maximum size of 10,000.
even also i am using readonly atribute , geting same error please do the needful,
Collection size 10,028 exceeds maximum size of 10,000.
<apex:page controller="Leaddisplay" readOnly="true">
<apex:pageBlock >
<apex:DataTable value="{!ld}" var="a">
<apex:column value="{!a.Lastname}" headerValue="LastName"/>
<apex:column value="{!a.company}" headerValue="companyName"/>
<apex:column value="{!a.status}" headerValue="LeadStatus"/>
<apex:column value="{!a.phone}" headerValue="phone"/>
</apex:DataTable>
</apex:pageBlock>
</apex:page>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>....
public class Leaddisplay {
public list<lead>ld{set;get;}
public Leaddisplay(){
// ld= new list<lead>();
ld=[select lastname,phone,company,status from lead];
}
}
Collection size 10,028 exceeds maximum size of 10,000.
<apex:page controller="Leaddisplay" readOnly="true">
<apex:pageBlock >
<apex:DataTable value="{!ld}" var="a">
<apex:column value="{!a.Lastname}" headerValue="LastName"/>
<apex:column value="{!a.company}" headerValue="companyName"/>
<apex:column value="{!a.status}" headerValue="LeadStatus"/>
<apex:column value="{!a.phone}" headerValue="phone"/>
</apex:DataTable>
</apex:pageBlock>
</apex:page>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>....
public class Leaddisplay {
public list<lead>ld{set;get;}
public Leaddisplay(){
// ld= new list<lead>();
ld=[select lastname,phone,company,status from lead];
}
}
You will have to implement pagination to work on records more than 10,000.
Use 2 data tables with 2 different collections as value or
Use nested data tables with Map<Integer, List<DisplayValue>>- first data table iterates the map keys, 2nd iterates the list of display value. Make sure the size of list<DisplayValue>not exceeding 10,000. The next set of 10,000 values you can store in next map key, This way you can display upto 10,000*10,000 values.