You need to sign in to do that
Don't have an account?
Dvisha T
Visualforce page to display account,contact and its related opportunities
Hi,
Thanks in advance for your help here.
I have a requirement where when i have list of accounts clicking on it it should display account,contacts and related opportunities in a single visual page of a particular account clicked.
Pls note it should not go to any detaul page.
Thanks in advance for your help here.
I have a requirement where when i have list of accounts clicking on it it should display account,contacts and related opportunities in a single visual page of a particular account clicked.
Pls note it should not go to any detaul page.
Please check the below sample code.
VisualForce Page:
Controller:
Please copy the above code and paste your account.
Please mark it as best answer if it really helpful.
Best regards,
Jyothsna
Thank you for your help here,but i still see the Account name list still visible in the visualforce page.
Let me know why am seeing in vf page
Once i click the specific account i should only see the account,contact and opp in that page.
<apex:form>
<apex:pageblock>
<apex:pageblocktable value="{!results}" var="a">
<apex:column value="{!a.Name}"/>
<apex:column value="{!a.contact.Firstname}"/>
</apex:pageblocktable>
</apex:pageblock>
</apex:form>
</apex:page>
try this
<apex:page showHeader="false" standardStylesheets="false" standardController="Contact">
<apex:variable value="{!Contact}" var="c" />
<p> <apex:outputField value="{!c.Account.Name}"/><br />
<apex:outputField value="{!c.MailingStreet}"/><br /> </p>
</apex:page>