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

Unable to refresh CPMHeader section using on click event

SA-29422

Summary



User is not able to refresh other section rule i.e.CPMPhoneNumber  by clicking on a link in the interaction verification screen.


Error Messages



No error message


Steps to Reproduce

  1. Launch the interaction portal .
  2. Initiate Interaction case (I-case)
  3. Click on the link which is present in the verification screen that is configured with refreshing Other section i.e. .CPMPhoneNumber.
  4. The above mentioned section does not refresh.


Root Cause



The verification screen in which the link is present is in an iframe.

The section i.e.CPMPhoneNumber which is to be refreshed is outside the Iframe. So, when on click of the link when the section is refreshed, it is not refreshing because it is outside the iframe.

Resolution



Below is the local change provided:

1. Run Script action configured on click of the link
2. Below is the script written in userworkform rule to refresh the section rule 
CPMPhoneNumber.
     
    function RefreshPhoneNumber() {
     
          var sectionNode = parent.pega.u.d.getSectionByName("CPMPhoneNumber", "", "");
  
          if (sectionNode)           
                 parent.pega.u.d.reloadSection(sectionNode, '', '', false, false, '-1', false);
      }



 

Published October 27, 2016 - Updated December 2, 2021

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?

Want to help us improve this content?

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