Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Install Pega Smart Investigate for Payments 7.11 on Pega 7.2.2.
  2. Launch the Manager portal. Navigate to Reports. 
  3. select Case Metrics in the Report category. 
  4. Select 'testreport'. 
  5. Add a From date value using the Date Picker. 
  6. Add a To date value using the Date Picker (From date value must be greater than the To date value). 
  7. Click outside the field. Error message displays at the top of the page. 
  8. Change the time of the To Date value manually. 
  9. 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

  1. Open the NewFilter section rule.
  2. Open the Action tab of the Date control property panel where Refresh-This section action is added on change.
  3. Add the setErrorTable runscript with the event as the parameter.


     
  4. 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> 

     
  5. Save the rule.

 

Published October 28, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice