Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Error after choosing a decimal value from from a dropddown

SA-16631

Summary



Error occurs when trying to choose value from list of decimal values (e.g. 0.10) in a dropdown when using ru_RU locale of Operator.
 

Error Messages



0.10 is not a valid decimal value


Steps to Reproduce



1. Create property of type Decimal, set UI control to pxNumber, set table type as Local List, add values to local list (e.g. three values: 0.01, 0.05, 0.10)
2. Create a section, add dropdown control to the section. Choose a property name from step 1. Set List source type as defined on property. Edit options on Presentation tab - auto (the same effect for read-only and editable)
3. Add section to any flow action. Try to proceed the flow with this section.
4. Error message occurs on dropdown.

Browser Chrome 39.0.2171.71, Internet Explorer 9

 


Root Cause



A defect in Pegasystems’ code or rules.
The pxDropDown control doesn’t work properly with decimal validation when the local used is using comma as separator.
This happens because the pxDropDown control is passing the value with dot as separator without taking account of the user local. Then validation process the value and return the error.

Resolution



Perform the following local-change: 

-    First solution: Disable client side validation as the flow action/harness level by unchecking "Enable client-side validation":


-    Second solution: Use a text property instead. If you need a decimal property for some calculation, you can populate it via a declare expression. See example below:
Text property definition:



 

Declare Expression on which a decimal property will be populated:

 

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us