on 03-02-2011 2:43 PM
All,
I have bound a context attribute (type - string) to a table column (TextView) which is used to display currency.
It displays the value as 123456789.00
How do I format the value as 123,456,789.00?
Is there any FM available to format?
I don't want to change the above context attribute type to CURR.
Thanks
Thruna
>I don't want to change the above context attribute type to CURR.
Why not? That is the correct thing to do. That way you get formatting, sorting, even the correct decimal position and notation for different currencies and user settings.
If you must go with string for the context attribute then I still assume your source data is type CURR. When you 'move' this content into the string of the context attribute use the WRITE statement. This will format the currency variable for output.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.