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

Number formating is incorrect in German Locale

SA-9725

Summary



Using the German local, we observe the decimal separator (which is a comma in German) is lost following several refresh, which is causing the value to be 10 times bigger (or 100 etc depending on the position of the comma). 
The pxCurrency control is used within a screen flow. Clicking on the screen flow steps is causing a refresh which is causing the issue.

Error Messages



no error message seen.

Steps to Reproduce



-Setup German in top position in  langage preference in IE (tools->Internet Options->Langage).
-Login in PRPC and update a pxCurrency field location in a screen flow with a value such as "123
,12".
-Refresh the screen by clickin on the screen flow step.
We notice the value being changed for "12312".


Root Cause



The root cause of this problem is a defect in Pegasystems’ code/rules. 
In case of format type is "number" and "Display value using readonly formatting" enabled (these are parameter of the control), we are generating input type as text but data-value is still being set with clipboard value instead of localized value. This needs generation changes to generate formatted value as data-value attribute on input element to fix the issue. Please note that this will address configuration where "Display value using readonly formatting" is enabled. If this option is not enabled, we continue to generate input type as number and in such cases refreshes with input contains separators may not work and can't be fixed. This is due to browser limitation/behavior for input type number. Different browsers behave differently for input type number.

Resolution



Hfix-22077 is fixing this issue.

Please note there are specific step for the change to take effect after installing the hot fix:

1) Re-Generate library "pzControl". A button is available for this when you open the library rule instance.
2) Delete extract marker file
3) Restarted system
4) Please re-save the section which contains pxCurrency control.


 

Published June 12, 2015 - 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