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
ahboahbo 

Visual Force Page : Accessing the Fields in Parent or Child Object

Hi ALL

 

I've created a custom object call Quotation and I would like to create a visual force page

in Quotation Tab that will access information from Account, Contacts etc...

 

I have a field in Quotation call Account_Name which is reference to the name of the account....

 

I don't know why I cannot call the field with the following code, please help !!!

 

<apex:page standardController="Quotation__c">

  {!Quotation__c.Account.Name}

</apex:page>

 

This is the error message I can see...

Error : Invalid field Account for SObject Quotation__c