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
Ranu JainRanu Jain 

Sobject's master fields dispaly on VF page

Hi All,


I have an variable of Sobject type in my controller.  

There is an chile obect Agreement and master Account. I have written qery 


public Sobject comp {get;set;};
class C {
comp = [select name , from Agreement ];

VF page :

Agreement field  {!comp['Name']}   Maseter field [here i want to display Account Name]




but i could not find out the way to display master's fields?