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
- Launch the interaction portal .
- Initiate Interaction case (I-case)
- Click on the link which is present in the verification screen that is configured with refreshing Other section i.e. .CPMPhoneNumber.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.