You need to sign in to do that
Don't have an account?
Formatting Currency
Hello,
I have checked the boards and tried the samples, but for some reason when I used this bit of code to format my currency:
<apex:outputText value="Rs{0,number, $###,##0.00}">
<apex:param value="${!opp.Total_Referrals__c}"/>
</apex:outputText>
I get this error:
Error: The value attribute on <apex:outputText> is not in a valid format. It must be a positive number, and of type Number, Date, Time, or Choice.
I'm clueless in what to do. I merely wish for a basic currency formatting technique. If you can offer any advice, I'd be appreciative.
Hello SFine
The reason for giving error incorrect usage of '$' symbol (<apex:param value="${!opp.Total_Referrals__c}"/>)
If you want to format currency and get output with Rs use following
-Suresh
All Answers
Hello SFine
The reason for giving error incorrect usage of '$' symbol (<apex:param value="${!opp.Total_Referrals__c}"/>)
If you want to format currency and get output with Rs use following
-Suresh
Thanks SSR. That worked perfectly.