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

System hangs on using the show smart info OOTB feature

SA-20305

Summary



User has used the Show smartInfo in a repeating grid which shows certain information to the user. When user clicks on the icon which display the smartinfo and then try to change the tab inside the application, the portal hangs for about 30 seconds in IE and 10 seconds in Chrome. While this does not occur if user closes the smartinfo before one changes the tab.
 

Certain times if smart info is already open, then on click of another tab, it does not open. User has to click on the tab again to open it.

Error Messages



Not applicable


Steps to Reproduce



1. Create a repeating-grid with on one field configure "On click Show Smart Info".
2. Select the check box for hover dismiss functionality.
2. Run the flow.
3. Click on the field to show smart-info. Without closing the pop-up move to next tab. It takes time to move to next tab, also at certain times, tab is not opening on single click.

Root Cause



A software use or operation error :

User was using on-hover smart-info dismiss configuration and same time used SmartInfoClickable section to show close option.
At run time without closing the pop-up user is moving to next tab where in next tab, it also takes time to load as contents are more.
Also at user end tried to change smart-info configuration to add default close icon by removing auto-dismiss option, removed SmartInfoClickable section also. But with this, pop-up did not close on click of close icon, though close event was triggered as expected.

Certain times if smart info is already open, then on click of another tab, it does not open. Event on the tab click is not getting triggered sometimes.

Resolution



Perform the following local-change: 

1.Add non-auto generated section with following script to the section that contains field to show smartinfo on click event.
<script>    
  var testHandler = function(evt){    
    var evtTarget = $(evt.target);
    if (evtTarget.parents('.smartInfoContainer').length == 0) {      
            var smartInfoBody = evt.currentTarget;
                pega.util.Event.removeListener(smartInfoBody, 'mousedown', testHandler);
                var closeIconElem = pega.util.Dom.getElementsById("SinfoCloseIcon", smartInfoBody );
                   if (closeIconElem != null && closeIconElem[0].getAttribute("clickableSmartInfo")) {
                    closeIconElem[0].click();
                }
     evtTarget.click();
    }
   };  
  
  function test(){
   pega.util.Event.removeListener(document.body, 'mousedown', testHandler);
   pega.util.Event.addListener(document.body, 'mousedown', testHandler);
  
  }      
</script>

2.Modify on-click event of the field to add one more action "RunScript:Function name as test" after the action "ShowSmartInfo".
3. Remove check box for on hover close action for smartinfo. Default close icon should be visible in pop-up.

After adding the changes issue gets resolved.
Suggest Edit

Published March 1, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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
Contact us