You need to sign in to do that
Don't have an account?
Pradnya Pendharkar 4
Create a Visualforce page which displays a variety of output fields
It is a simple page here is the code
<apex:page standardController="Opportunity">
<apex:outputField value="{! Opportunity.Name}"/>
<apex:outputField value="{! Opportunity.Amount}"/>
<apex:outputField value="{! Opportunity.CloseDate}" />
<apex:outputField value="{! Opportunity.AccountName}" />
</apex:page>
What's wrong
<apex:page standardController="Opportunity">
<apex:outputField value="{! Opportunity.Name}"/>
<apex:outputField value="{! Opportunity.Amount}"/>
<apex:outputField value="{! Opportunity.CloseDate}" />
<apex:outputField value="{! Opportunity.AccountName}" />
</apex:page>
What's wrong
Change the AccountName output fieds as below:
<apex:outputField value="{! Opportunity.Account.Name}" />
Regards,
Gokula Krishnan
If it helps you, please mark is as best answer, so it will be helpful for other developers.
Use below code : to check this vf page output :
https://monkey-blog-dev-ed.my.salesforce.com/apex/VfPageName?id=0066F00000kYsUi
give any existing opportunity id
i hope it helps you.
Let me inform if it helps you and kindly mark it best answer if it helps you so it make proper solution for others
Thanks
http://sfdcmonkey.com
Muito legal o Visual Force, para quem tem conhecimento de HTML é uma mão na roda!
Abraços Desenvolvedores.
Célio Xavier