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
sbeniwalsbeniwal 

Basic visualforce question

Hi there,

 

I am trying my hands on Visualforce and it's a very basic question. While on the Account controller, if I am pulling the account details such as CreatedBY it gives me the record ID and not the name. Similary, I am not able to print the TickerSymbol.

 

Here is the code - please help out.

<apex:page standardController="Account">
    Hello {!$User.FirstName}. <BR/>
   
    The current Account {!Account.Name} record has been created by: {!Account.CreatedBy}. The industry of the account is: {!Account.Industry}<BR/> The ticker symbol for the account is {!Account.TickerSymbol}
   
</apex:page>

 

PS: Should I be writing a Controller extension with the SOQL in it.

Select Username, Manager.Name from User

Best Answer chosen by Admin (Salesforce Developers) 
Dhaval PanchalDhaval Panchal
Use below,
{!Account.CreatedBy.Name}

All Answers

Dhaval PanchalDhaval Panchal
Use below,
{!Account.CreatedBy.Name}
This was selected as the best answer
sbeniwalsbeniwal

Thanks, what if I have to show the account picture as well..

Dhaval PanchalDhaval Panchal
Account picture or user photo?
sbeniwalsbeniwal

Account Picture...