You need to sign in to do that
Don't have an account?
krishna casukhela 7
Show related contacts & Opportunities for each account in a single page
Hi friends
I admit I am novice to VF.
For every account name I need to display related contacts & opportunities like this in a single visual force page.
UserName: krishna
---------------------------
accname: AxisBak
contact1:
contact2:
oppor1:
oppor2
accname:Airtel
Contact2:
contact3
Please let me know how this is achieved
Regards
krishna casukhela
P
I admit I am novice to VF.
For every account name I need to display related contacts & opportunities like this in a single visual force page.
UserName: krishna
---------------------------
accname: AxisBak
contact1:
contact2:
oppor1:
oppor2
accname:Airtel
Contact2:
contact3
Please let me know how this is achieved
Regards
krishna casukhela
P
Please try
--------------------------------------------------------------------------------------------------------------------------
<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>
--------------------------------------------------------------------------------------------------------------------------------
Please mark as best answer so it will help to other who will serve same problem.
Thanks!
All Answers
Please try
--------------------------------------------------------------------------------------------------------------------------
<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>
--------------------------------------------------------------------------------------------------------------------------------
Please mark as best answer so it will help to other who will serve same problem.
Thanks!
Please mark as best answer so it will help to other who will serve same problem.
Thanks!
Many thanks for ur reply. gr8 man. I was looking exactly for this functionality wherein I can edit & add.
Regards
krishna