+ Start a Discussion
Indhurani KanagarajIndhurani Kanagaraj 

Displaying comma after thousands in total values.

I have Table in visual force which pulls all currency value of perticular vendor in the year and few filters all performed to find total values quater values extra. i need to display comma after thousands. There are so many fileds so i cant if codition for all the fileds. Please let me know how to handel this?
 
Best Answer chosen by Indhurani Kanagaraj
bhanu_prakashbhanu_prakash
Check these
 
<td style="text-align: center;">
   <apex:outputText value="${0, number, ###,###,###,##0.00}">  
      <apex:param value="{!Account.Amount__c}"/>  
   </apex:outputText> 
 </td>
 <td style="text-align: center;">
    <apex:outputText value="${0, number, ###,###,###,##0.00}">  
      <apex:param value="{!Account.Amount__c}"/>  
   </apex:outputText>  
 </td>
 <td style="text-align: center;">
     <apex:outputText value="${0, number, ###,###,###,##0.00}">  
      <apex:param value="{!Account.Amount__c}"/>  
   </apex:outputText>  
 </td>

You need to replace Amount__cwith yur requested fields

All Answers

bhanu_prakashbhanu_prakash
Hi Indhurani Kanagaraj,
Mark as best answer, If it resloves !!​​​​
<apex:outputText value="${0, number, ###,###,###,##0.00}">  
      <apex:param value="{!Account.Amount__c}"/>  
 </apex:outputText>

Mark as resloved if it helps :) :)
Thanks, 
Bhanu Prakash
visit ForceLearn.com (https://www.forcelearn.com/)  
Indhurani KanagarajIndhurani Kanagaraj
The output is in the form of table value.

<td style="text-align: center;">$ {!AmountJan}</td>
<td style="text-align: center;">$ {!AmountFeb}</td>
<td style="text-align: center;">$ {!AmountMarch}</td>
bhanu_prakashbhanu_prakash
Hi Indhurani Kanagaraj,
<aura:attribute name="GrossRevenuevalue" type="Decimal" default="3250.00" />
Your amount is : <ui:outputCurrency aura:id="curr" value="{!v.GrossRevenuevalue}" format="$##,##,###,###.00"/>
check these link: https://developer.salesforce.com/docs/component-library/bundle/ui:outputCurrency/example
Mark as resloved if it helps :) :)
Thanks, 
Bhanu Prakash
visit ForceLearn.com  (https://www.forcelearn.com/
Indhurani KanagarajIndhurani Kanagaraj
Its not aura framework. :(
bhanu_prakashbhanu_prakash
Check these
 
<td style="text-align: center;">
   <apex:outputText value="${0, number, ###,###,###,##0.00}">  
      <apex:param value="{!Account.Amount__c}"/>  
   </apex:outputText> 
 </td>
 <td style="text-align: center;">
    <apex:outputText value="${0, number, ###,###,###,##0.00}">  
      <apex:param value="{!Account.Amount__c}"/>  
   </apex:outputText>  
 </td>
 <td style="text-align: center;">
     <apex:outputText value="${0, number, ###,###,###,##0.00}">  
      <apex:param value="{!Account.Amount__c}"/>  
   </apex:outputText>  
 </td>

You need to replace Amount__cwith yur requested fields
This was selected as the best answer
Indhurani KanagarajIndhurani Kanagaraj
Thank you Bhanu, its working.
bhanu_prakashbhanu_prakash
welcome Indhurani Kanagaraj