Support Article
Error message in UI blinks and disappears
SA-14212
Summary
The validation error message in UI blinks and disappears in a second. But in clipboard, the message is set correctly. This issue occurs only with Show harness. This behavior occurs after upgrading from PRPC 6.3 to Pega 7.1.7. Screen is refreshed automatically when Show harness is used.
Error Messages
Not Applicable
Steps to Reproduce
1 Create two date fields, startDate and endDate and a button.
2 On Click action and a main activity, an event is triggered.
3 In Main activity, ValidateDate, activity and Call Show-Harness method is called.
4 In ValidateDate activity, Page-Clear-Messages and Page-Set-Messages methods are called.
5 In Page-Set-Message method, a When rule is configured to validate the dates in above fields.
6 Error message is configured to appear on Harness by setting form-level errors to Top of Harness in Display Options tab of Harness rule.
Root Cause
Deprecated control usage and customization lead to reported behavior.
Resolution
Perform the following local-change:
- Replace deprecated control with Button (pxButton) control in section.
- On Click event, add Refresh - This section and Configure SearchCaseHistory activity.
- Configure Call Clear Message as first step in activity and enable condition.
Published September 21, 2015 - 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.