+ 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 , Account_r.name from Agreement ];
}


VF page :

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

</form>

 

 

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