on 06-28-2007 3:55 AM
The compiler mode is webdynpro,
The ivew table column's data type is num type,
The column show a curreny data.
Now the problem is when the num data is like a number as "1000.00",the ".00" will not show,but when the value is "1000.01" ,it show "1000.01". I want it always show the formatting like "X.XX".
There is also no formatting property to set in the column like in flash compiler mode then i can set decimal places to 2.
What should i do?
Hi,
You can use Decimal Format Class and declare something like:
DecimalFormat df = new DecimalFormat("#,##0.00;(#,##0.00)");
wdContext.currentContextElement().setSueldoTxt(df.format(wdContext.currentOutputSueldoElement().getPe_Betrg()));
You'll have the two decimals...!!
Good Luck and regards,
Maria Margarita Monteverde
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.