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
KaityKaity 

Output text attribute

Hi,

I was going through the Apex developers guide, but did not find what does this mean?

 value="{0,number,currency}"> 

-------------------------------------------------------------------------------------------

<apex:page standardController="Account" renderAs="pdf">
<h1>Account Details</h1>
<apex:panelGrid columns="2">
<apex:outputLabel for="Name" value="Name"/>
<apex:outputText id="Name" value="{!account.Name}"/>
<apex:outputLabel for="Owner" value="Account Owner"/>
<apex:outputText id="Owner" value="{!account.Owner.Name}"/>
<apex:outputLabel for="AnnualRevenue" value="Annual Revenue"/>

 <apex:outputText id="AnnualRevenue" value="{0,number,currency}"> 

<apex:param value="{!account.AnnualRevenue}"/>
</apex:outputText>
<apex:outputLabel for="NumberOfEmployees" value="Employees"/>
<apex:outputText id="NumberOfEmployees" value="{!account.NumberOfEmployees}"/>
</apex:panelGrid>
</apex:page>

 

Thanks, 

Kaity

Best Answer chosen by Admin (Salesforce Developers) 
sambasamba

All Answers

sambasamba
This was selected as the best answer
KaityKaity

Thank you , the share link is worthy.

 

-Kaity.