-
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
Is Salesforce getting rid of Workflow Rules and Process Builder?
Blog
in Salesforce Apex, Salesforce Tutorial
Introduction For the last few months, the rumours have been buzzing out, that Salesforce is discontinuing its one of the most effective automation tools; the…
Takeaways from TrailheaDX'17
Blog
in Coding and Scripting
"The Welkin Suite Team just recently got back from attending TrailheaDX'17 in San Francisco, this last weekend, and we really appreciated the opportunity to visit…
With The New Salesforce IoT Cloud Service, I See Some Version of Next Best
Blog
in Salesforce Products
Recently, Salesforce came up with the new IoT cloud explorer edition that enables sales, marketing, and support personnel to use and maintain IoT devices. Salesforce…