-
How can i get the owner Name of account object by DML and put at the outputfield of visualForce Page?
I am trying this apex code-
public String owners{
get{
return [select owner.firstname from Account where ownerid=:this.account.ownerid][0].name;
}
private set;}
<apex:outputField action="{!owner}"/>
Log In to reply.
Popular Salesforce Blogs
Learn All About Collections in Salesforce: List, Set and Map
In this Blog, we will study collections in Salesforce. List It is an ordered collection of elements. Each element of the list has a unique…
Learn All About Standard Controllers in Salesforce | The Developer Guide
The Visualforce controller is used to access visual markers associated with a specific link or button. These controllers can be used to provide access to…