Support Article
Decimal control removes error message from Property
SA-6724
Summary
When Developer is having any property with decimal control and tries to fire a validation , somehow the error messages from the page is getting removed. .
Error Messages
Error message on the property does not appear on the screen.
Steps to Reproduce
1) Create a flow for a flow action and include a section in the flow action.
2) The secion should contain a decimal control property and on event "onchange" select the action "Refresh this section" which calls the a activity.
3) The acivity contains two methods:
a) Property-Map-DecisionTable
This contains two parameters: Property Name is set to the decimal property created earlier and DecisionTableName is set to a decision table
b) Obj-Validate
The validate parameter will take the property validate method.
4) Now run the flow
Root Cause
The root cause of this problem is a defect in Pegasystems’ code/rules. In the control 'Decimal', the messages on the property are cached by 'hasValidValue()' method. So error messages are not displayed on the screen even if it is validated.
Resolution
This issue is resolved by hotfix item with ID HFix-20951.
In the control 'Decimal', the messages on the property are caught by 'hasValidValue()' method. So error messages are not displayed on the screen even if it is validated.
So the hotfix sets the messages back to the property.
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.