on 2018 Mar 07 7:15 AM
Hi experts.
On the sender rest adapter i have the xml value 1.00 if i set the conversion to JSON:
1. Nothing: the adapter converts it in a string, i get: "1.00".
2. Custom XML/JSON conversion Rules, type decimal or float, i get: 1
3. Custom XML/JSON conversion Rules, type decimal or float, default value 0.00, i get: 1
Is there any possibility to get the value 1.00, as a number, with the point and the decimal values?
Regards.
Hello Iñaki,
In ESR, data type definition, you set a field as Decimal, and if you click the "show data sheet" button, you will find the parameter fractionDigits which determines the number of displayed decimal places. For your case, you can set it 2, and you will get the value 1.00. For more details, check the following screenshots:
Best Regards,
Liz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Iñaki Vila
Do you solve the problem with the decimals without .00?
Kind regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.