Friday, December 28, 2012
Well few days ago while working with a Visualforce page I came across a requirement of showing currency field using proper currency formatting.
For Example
For Example
- 6000 should appear as $6,000.00 in the vf page
After checking the standard Salesforce tags I was unable to find a solution. but somehow figured out that <apex:param> tag can be exploited here.
So do the currency formatting in a vf page you can use the below markup.
<apex:outputText value="${0, number, ###,###,###,##0.00}">  
      <apex:param value="{!Account.Amount__c}"/>  
 </apex:outputText>  
Hoping this helps for your currency formatting need!
