+ Start a Discussion
newforce143newforce143 

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
newforce143newforce143

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

Dhaval PanchalDhaval Panchal
Account picture or user photo?
newforce143newforce143

Account Picture...