Hi,
I use a rest service from jasper studio.
My data is for example : "5.65" (In JSON format)
When i click on Data preview , it show only '5'. (The field is BigDecimal)
In my web service, if i change the mysql query with
REPLACE (myValue, '.',',') // Replace dot by comma
The JSON become : '5,65' and it works ...
How can i cast this value in Jasper to avoid the use of replace...
Thanks
1 Answer:
Posted on December 12, 2022 at 6:13am
It's use locale,
dependent method of org.apache.commons.beanutils for the conversion, namely LocaleConvertUtilsBean.convert(String, Class<?>, Locale, String).
look at :
[#14026] - Bug at converting BigDecimal numbers
https://community.jaspersoft.com/jasperreports-library/issues/14026