Support Article
Error message position of changes in IE browser for reports
SA-64105
Summary
In Pega 7.2.2, the position of an error message changes (that is, the error message moves upwards) for reports. The error message is not visible clearly after editing the DateTime field manually and clicking outside the screen.
This occurs sporadically in the Internet Explorer browser.
Error Messages
Not Applicable
Steps to Reproduce
- Install Pega Smart Investigate for Payments 7.11 on Pega 7.2.2.
- Launch the Manager portal. Navigate to Reports.
- select Case Metrics in the Report category.
- Select 'testreport'.
- Add a From date value using the Date Picker.
- Add a To date value using the Date Picker (From date value must be greater than the To date value).
- Click outside the field. Error message displays at the top of the page.
- Change the time of the To Date value manually.
- Click outside the field. The error message moves upward and is hidden below the portal header.
Root Cause
In the Internet Explorer browser, the Focus function takes time to apply changes. Hence, the setTimeout function must be invoked to set the focus on the error table. In the Chrome browser, this works because the Focus function takes immediate effect.
Resolution
- Open the NewFilter section rule.
- Open the Action tab of the Date control property panel where Refresh-This section action is added on change.
- Add the setErrorTable runscript with the event as the parameter.
- Add the below code in the UserWorkForm.
<script>
function setErrorTable(event){
var errorTable = document.querySelector("#ERRORTABLE");
$(errorTable).css("margin","0px");
setTimeout(function() { errorTable.parentElement.parentElement.focus(); }, 10);
}
</script>
- Save the rule.
Published October 28, 2018 - 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.