• Abdelaziz Hassan
  • NEWBIE
  • 15 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
I'm on the Display Records, Fields, and Tables module under Visualforce Basics, and I'm unable to complete the challenge

Here is the criteria:
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.
Challenge Requirements
The page must be named OppView
It must reference the Opportunity standard controller
It must have four apex:outputField components bound to the following Opportunity fields:
Opportunity Name
Amount
Close Date
Account Name of the Opportunity

Here is my code from the dev console:
<apex:page standardController="Opportunity">
    <apex:pageBlock title="Opportunities">
        <apex:pageBlockSection>
            <apex:outputField value="{!Opportunity.Name}"/>
            <apex:outputField value="{!Opportunity.Amount}"/>
            <apex:outputField value="{!Opportunity.CloseDate}"/>
            <apex:outputField value="{!Opportunity.AccountId}"/>
        </apex:pageBlockSection>
    </apex:pageBlock>
</apex:page>


Here's the error I receive:
The page does not include a apex:outputField component bound to the opportunity amount

Also here's the error I receive from the dev console, it is having trouble running the outputField line for the Opportunity.Amount:
Currency fields on entities with effective dated currency are not supported.

I'm not sure if it's a configuration or dev issue, but any assistance to clear this challenge would be greatly appreciated!
I'm on the Display Records, Fields, and Tables module under Visualforce Basics, and I'm unable to complete the challenge

Here is the criteria:
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.
Challenge Requirements
The page must be named OppView
It must reference the Opportunity standard controller
It must have four apex:outputField components bound to the following Opportunity fields:
Opportunity Name
Amount
Close Date
Account Name of the Opportunity

Here is my code from the dev console:
<apex:page standardController="Opportunity">
    <apex:pageBlock title="Opportunities">
        <apex:pageBlockSection>
            <apex:outputField value="{!Opportunity.Name}"/>
            <apex:outputField value="{!Opportunity.Amount}"/>
            <apex:outputField value="{!Opportunity.CloseDate}"/>
            <apex:outputField value="{!Opportunity.AccountId}"/>
        </apex:pageBlockSection>
    </apex:pageBlock>
</apex:page>


Here's the error I receive:
The page does not include a apex:outputField component bound to the opportunity amount

Also here's the error I receive from the dev console, it is having trouble running the outputField line for the Opportunity.Amount:
Currency fields on entities with effective dated currency are not supported.

I'm not sure if it's a configuration or dev issue, but any assistance to clear this challenge would be greatly appreciated!