function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pavan TrailPavan Trail 

Doubt

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.

for the above task i am trying with the below ccode and its getting an error. Please suggest me the code to execute.

apex:page Standard Controller = "StandardController"/> 
<apex:pageBlock title= "output details">
    <apex:pageBlockSection>
        <apex:outputField value="{! Oppurtunity.Name }"/>
        <apex:outputField value="{! Oppurtunity.Amount }"/>
        <apex:outputField value="{! Oppurtunity.Closedate }"/>
        <apex:outputField value="{! Oppurtunity.Account.name }"/>
    </apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
Jeff DouglasJeff Douglas
Which Trailhead module is this for? Can you provide a link to the actual challenge you are having problems with?

Thanks
Jeff Douglas
Trailhead Developer Advocate
Shaik Shaikshavali 2Shaik Shaikshavali 2
Hi Pavan,

Below code will work for you. 

<apex:page standardController="Opportunity">
  <apex:pageBlock title="Opportunity 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>

Thank you,
Shaik
Anish Kumar 68Anish Kumar 68
Your request to install package "Warehouse Winter 2015" was unsuccessful. None of the data or setup information in your salesforce.comorganization was affected.

If your install continues to fail, contact Salesforce CRM Support through your normal channels and provide the following information.

Organization: Invetech Solutions (00D7F000001ceLb)
User: Anish Kumar (0057F000000vMQW)
Package: Warehouse (04tA0000000ALX1)

Problem:

1. Apex Classes(classes/FindNearbyExt.cls) Missing feature
Installing this package requires the following feature and its associated permissions: Apex Classes

What is the solution of this problem.Please reply fast I need to resolve it very fast