
I have written the code for this.
<apex:page standardController="Account"
recordSetVar="accounts"
tabStyle="Account"
sidebar="false">
<apex:pageBlock >
<apex:repeat value="{!accounts}" var="a">
<apex:pageBlockSection title="{!a.name}">
</apex:pageBlockSection>
<apex:relatedList list="Contacts" subject="{!a.Id}"/>
<apex:relatedList list="Opportunities" subject="{!a.Id}" />
</apex:repeat>
</apex:pageBlock>
</apex:page>
Its working in the sense it displays only a few accounts but not all the accounts.
so I miss out on many account with related contacts.How to to make sure it display all the accounts names?thankspooja3 respuestas

Hi MaheshThanks for ur reply like wise let me be clear with a screen shotsorry I was not clear with previous post.I do not have any custom button, the LIST button of account is overriden with my visual force page. Now I did exaclty as per ur post but its not showing all records only a few.I created many accounts today but they are not reflecting.Am I missing on something?Thankspooja