Support Article
Min/Max chars did not work for decimal property
SA-3757
Summary
Min/Max chars limitation isn't working for numeric input (Decimal) in pxTextInput.
This problem is experienced only when we add pyDecimalPrecision Property Qualifiers (It works as expected otherwise!).
Steps to Reproduce
1) Create decimal property making sure to add ‘pyDecimalPrecision’ Property Qualifiers in advanced tab.
2) Add it to layout.
3) Set control to pxTextInput or pxNumber.
4) Specify in the control options Min/Max chars.
5) Try type number bigger than specified in Max char (e.g. Max chars = 6 and try to type in 1000000).
Expected result:
User cannot enter last (7th) symbol
Actual result:
User can specify any number.
Root Cause
The root cause of this problem is a defect in Pegasystems’ code/rules.
RULE-UTILITY-FUNCTION PZCONTROL PZGENERATECONTROL--(CLIPBOARDPAG958D4B4F290980CF271DE20E4A2E7F6E #20141119T145807.456 GMT/Pega-UIEngine:06
Resolution
This issue is resolved by hotfix item - HFix-10370.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.