You need to sign in to do that
Don't have an account?
![surya singh 9 surya singh 9](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
I am a beginner : Not able to solve Trailhead challange for-Developer Beginner :Visualforce Basics-Displaying Records, Fields, and Tables-Create a Visualforce page which displays a variety of output fields
I am a beginner : Not able to solve Trailhead challange for-Developer Beginner :Visualforce Basics-Displaying Records, Fields, and Tables-Create a Visualforce page which displays a variety of output fields
Create a page which displays a subset of Opportunity fields using apex:outputField components. Bind the Name, Amount, Close Date and Account Name fields to the apex:outputField components.
The page must be named 'OppView'.
It must reference the Opportunity standard controller.
It must have an apex:outputField component bound to the Opportunity Name.
It must have an apex:outputField component bound to the Opportunity Amount.
It must have an apex:outputField component bound to the Opportunity Close Date.
It must have an apex:outputField component bound to the Account Name of the Opportunity.
What I had tried is craeted OppView Page with below code:
<apex:page standardController="Opportunity" tabStyle="Opportunity">
<apex:pageBlock >
<apex:pageBlockSection title="Opportunity Information">
Opportunity Name <apex:outputField value="{!opportunity.name}"/>
Opportunity Amount <apex:outputField value="{!opportunity.amount}"/>
Opportunity Close Date. <apex:outputField value="{!opportunity.closeDate}"/>
Opportunity Account Name <apex:outputField value="{!opportunity.accountId}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
while checking challange got below error
Challenge Not yet complete... here's what's wrong:
The page does not include a apex:outputField component bound to the opportunity account name.
Please suggest
Create a page which displays a subset of Opportunity fields using apex:outputField components. Bind the Name, Amount, Close Date and Account Name fields to the apex:outputField components.
The page must be named 'OppView'.
It must reference the Opportunity standard controller.
It must have an apex:outputField component bound to the Opportunity Name.
It must have an apex:outputField component bound to the Opportunity Amount.
It must have an apex:outputField component bound to the Opportunity Close Date.
It must have an apex:outputField component bound to the Account Name of the Opportunity.
What I had tried is craeted OppView Page with below code:
<apex:page standardController="Opportunity" tabStyle="Opportunity">
<apex:pageBlock >
<apex:pageBlockSection title="Opportunity Information">
Opportunity Name <apex:outputField value="{!opportunity.name}"/>
Opportunity Amount <apex:outputField value="{!opportunity.amount}"/>
Opportunity Close Date. <apex:outputField value="{!opportunity.closeDate}"/>
Opportunity Account Name <apex:outputField value="{!opportunity.accountId}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
while checking challange got below error
Challenge Not yet complete... here's what's wrong:
The page does not include a apex:outputField component bound to the opportunity account name.
Please suggest
All Answers
Challenge Not yet complete... here's what's wrong:
The page does not include a apex:outputField component bound to the opportunity account name.
one more problem (mentioned below) is still unsolved . Please help me on this
I am beginner : Not able to solve Trailhead challange for-Developer Beginner :Process Automation-Automate Basic Business Processes with Process Builder
<apex:pageBlock title="Opp Details">
<apex:pageBlockSection >
<apex:outputField value="{! Opportunity.Name }"/>
<apex:outputField value="{! Opportunity.Amount }"/>
<apex:outputField value="{! Opportunity.Closedate }"/>
<apex:outputField value="{! Opportunity.Account.Name }"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
I have the same code and looked at the video, but am getting the same error message. looked at the video as well. Can someone help me here:
My Code:
<apex:page sidebar="false" standardController="Opportunity">
<apex:pageBlock title="Opportunity">
<apex:pageBlockSection>
<apex:outputField value="{! Opportunity.Name}"/>
<apex:outputField value="{! Opportunity.Amount}"/>
<apex:outputField value="{! Opportunity.CloseDate}"/>
<apex:outputField value="{! Opportunity.Account.Name}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
<apex:page standardController="Opportunity">
<apex:pageBlock>
<apex:pageBlockSection title="OppView">
<apex:outputField value="{!opportunity.name}"/>
<apex:outputField value="{!opportunity.Amount}"/>
<apex:outputField value="{!opportunity.closeDate}"/>
<apex:outputField value="{!opportunity.account.name}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>