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
cassycassy 

show Name of an UserId

Hallo everyone,

 

I want to put Accountinformation in an pageBlockTable also the Owner Name of the Account , but Accounts have only a lookup Field with the OwnerId. How can i get the Name of the Owner without writing a trigger??

Best Answer chosen by Admin (Salesforce Developers) 
Starz26Starz26

I assume you are using a standard controller for your VF page?

 

If so, use outputfield or something similar and set the value="{!Account.Owner.Name}" (Account for example)