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
98765432109876543210 

How to call master object field while using standard controller with child object in vF page

hi am very new to salesforce Please help me & how many possible ways are there to call

 

Master object : Course (Fields are course name,course fees)

Child object : Student Both are custom objects how i can call course object field (Master) in Visual force page while using

standard Controller = student

I want course fees field in student objecct.

 

<apex:page standard controller="student__c">

 

please solve it if i want to write any class plz send me how to write that class also....

Best Answer chosen by Admin (Salesforce Developers) 
souvik9086souvik9086

Write like this

 

<apex:inputField value="{!student__c.Course__r.coursefees__c}"/>

 

 If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks

All Answers

souvik9086souvik9086

Write like this

 

<apex:inputField value="{!student__c.Course__r.coursefees__c}"/>

 

 If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks

This was selected as the best answer
98765432109876543210
how to insert image in visual force page & i want menu bar also.please
suggest me....