Skip to main content
pooja biswas ha preguntado en #Apex
Hi

I have a requirement as follows

In Account List View Page, I have added a custom button (fetch_Names) which will fetch all account names followed with contact details and opportunity details.

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?

thanks

pooja

 
3 respuestas
  1. 3 may 2016, 7:34
    Hi Mahesh

    Thanks for ur reply like wise let me be clear with a screen shot

    sorry 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.

    Hi MaheshThanks for ur reply like wise let me be clear with a screen shotsorry I was not clear with previous post.

    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?

    Thanks

    pooja
0/9000