You need to sign in to do that
Don't have an account?
Anuj_Bakshi
Ouput Formula as currency output in excel output visualforce page
Hi All !
I am currently generating an excel output with formula in the table: <td>=ROUNDUP(C{!rowNum}*D{!rowNum}/100,0)</td>
The output generated comes in the format:
800000
I actually want the output in the format:
$800,000
How do I achieve this?
Thanks!
Anuj
I am currently generating an excel output with formula in the table: <td>=ROUNDUP(C{!rowNum}*D{!rowNum}/100,0)</td>
The output generated comes in the format:
800000
I actually want the output in the format:
$800,000
How do I achieve this?
Thanks!
Anuj
You need to do something like this . where total number is the integer variable and floor removes the decimal point and {0,number,#,##0} pattern does the formatting.
Hope this helps!
I have already tried this but this doesn't work because param value does not take formula as an input.
If I get the direct value from a field in salesforce then I am able to do it this way but the reuirement is that the ouput should be done by a formula and not populated directly.
Thanks for your response, let me know if you have any other ideas!
Param does take formula as an input. it is working in my dev org.
Output :
Could you post your vf page and apex class code ?