-
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
Exception Handling in Salesforce
Blog
in Salesforce Apex, Salesforce Tutorial
Exception: "An exception is an event, which occurs during the execution of a program, that disrupts the normal flow of the program's instructions." Don’t forget…
Mastering Continuous Integration Top Tools and Techniques for DevOps
Blog
in Salesforce
In today's digital environment, such innovation has to be very fast and efficient to outcompete others. Continuous Integration has become the bedrock of DevOps practices…
Successful Implementation Of Salesforce Communities
Blog
in Salesforce Certifications
Salesforce Communities has changed the way businesses can handle connections with their customers, partners, and employees. The communities relevant to the industry can be created…