You need to sign in to do that
Don't have an account?
Sachin Chaudhary 15
Related List "pageSize"
Hi,
This is my VF page code. But related list showing all contacts though I am using pageSize="1".
<apex:page standardController="Account">
<apex:pageBlock>
<apex:pageBlockSection>
<apex:detail relatedList="false"/>
<apex:relatedList list="Contacts" pageSize="1"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
This is my VF page code. But related list showing all contacts though I am using pageSize="1".
<apex:page standardController="Account">
<apex:pageBlock>
<apex:pageBlockSection>
<apex:detail relatedList="false"/>
<apex:relatedList list="Contacts" pageSize="1"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
It is displaying all the contact records
I just used the code in a test environment without changing anything and it worked perfectly. It seems like this could be a Salesforce bug. You should submit a ticket with Salesforce Support and see if they can provide an explanation
Please mark it as the best answer if it helps you to fix the issue.
Thanks And Regards,
Suraj Tripathi.
This is a visualforce bug, where setting the number of records to display in a related list doesn't work in production.
In Production:
I set the pagesize to 10.
It doesn't work.
In Sandbox:
I set the pagesize to 10.
And it works.