You need to sign in to do that
Don't have an account?
Naresh123
How to display Contact and related Account in VFP.?
Hi Friends,
I want to create Visualforce page that when given a contact ID will display that contact, the account that it is associated to, as well as the billing addresses of each (which should be the same). Can anyone help me out to write this..........Thanks in advance
Hi Naresh,
Try the following code snippet to achieve your requirement:-
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Hi Ispita Saha,
First of all thanks for spending your valuable time.Here i am getting error like Formula expression is required for attribute subject in <apex:relatedList>.
Hi,
Please try this
<apex:page standardController="Contact">
<apex:pageBlock title="Hello {!$User.FirstName}!">
You belong to the {!contact.firstname}.
</apex:pageBlock>
<apex:detail subject="{!contact}" relatedList="false"/>
<apex:relatedList list="OpenActivities" subject="{!$CurrentPage.parameters.relatedId}" />
</apex:page>