Integers with alphabet input pass validation but cause an error
An integer property is populated with alphabet value or a number that contains one or more spaces( example: "asdf" , 12 345), throwing an error at onchange event.
Fail ** PropertyValueInvalid null .pegaToInteger() Invalid number format (was 12 345). This cause error during datatype conversion.
Steps to Reproduce
1. Configure the text input with property type "Decimal" and UI Control with pxNumber.
2. Add a change event with "refresh the section" action.
3. Call the activity which includes the When rule.
Its an expected behavior, as the property type is of Decimal, user providing the input as "12 35", where the system assuming the given value as string and failing to compare the value with when condition provided in the activity.
Explanation: Requested user to add one more step in an activity before calling "Property-set-messages" to validate the property value using "Property-validate" method, based on the results to continue next step in the activity.
0% found this useful