Support Article

Property values change on each save

SA-26359

Summary



When user is filling a form and putting 0.5 for a decimal type property, the value getting changed to 5.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a decimal type property.
  2. Create a section with TextInput control and map the decimal property created above with this control.
  3. Run the section and enter any decimal value with 0 as the starting digit.


Root Cause



A defect or configuration issue in the operating environment: The local system was configured with Turkish locale and the operator didn't had any locale mentioned. As a result, application was taking system's locale settings for processing Decimal data. in Turkish locale comma( ",") is used as decimal point and dot( ".") is used as separator, so when user is selecting 0.5 for a decimal property, the actual value for is set to 5.

Resolution



To avoid this , you can mention a default locale for the operator(e.g- en_US) which will force application to take this locale settings into precedence.

Published August 3, 2016 - Updated August 23, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.