Support Article
On Change of correspondence refreshes the entire harness
SA-45556
Summary
On Change of correspondence refreshes the entire harness instead of the section.
Error Messages
Not Applicable
Steps to Reproduce
- Use the ActionInitializeCorr as a reference in a flow action.
- Select any out-of-the-flow local action PegaCheck-Adj-.Notify.
Root Cause
A defect in Pegasystems’ code or rules.
ActionInitializeCorr is used as a reference in the 'Notify' flow action. In the HTML reference, onChange of a party or a correspondence, a JavaScript function is called to submit the document (document.main.submit), which results in refreshing the entire harness.
Resolution
Perform the following local-change:- Reference a wrapper section (for example, CorrWrapper) in the 'Notify' flow action.
- Create a non-auto generated (for example, AxnCorrInclude) section and refer it in the CorrWrapper section.
- Add the below code in the non-auto generated section.
<pega:include name="ActionInitializeCorr" type="Rule-OBJ-HTML"/> - Modify the submitSelection method, in the HTML ActionInitializeCorr, and pass the parameter in submitSelection as 'this'.
{ function submitSelection(selectObj)
var sectionElem = pega.u.d.getEnclosingSection(selectObj);
pega.u.d.reloadSection(sectionElem, "", "", false, true, "-1", false);
}
Tags:
Published December 9, 2017 - 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.