Support Article
Refresh of layout based on property change is not working
SA-34829
Summary
User configured a refresh section to Refresh parent layout on submit of overlay based on clipboard property change, but this is not working as expected.
Error Messages
Not Applicable
Steps to Reproduce
1. Try to open an overlay on top of a modal dialog.
2. On the flow change a property value in the clipboard.
3. Submit the form there in the overlay.
Root Cause
A defect in Pegasystems’ code or rules. It does not trigger the reload section on changing the property value in the clipboard for modal dialogs.
Resolution
Perform the following local-change:
<script>
$(document).ready(function(){
setTimeout(function(){
pega.ui.Doc.prototype.doOverlayAction = function(submitModalDlgParam,event){
var popOver = pega.u.d.getPopOver(pega.u.d.insertButton);
if(submitModalDlgParam){
pega.u.d.actionName = submitModalDlgParam.taskStatus;
pega.u.d.performFlowAction(submitModalDlgParam.taskStatus,event,"","",popOver.getContentContainerElement());
if(submitModalDlgParam.reloadElement){
pega.u.d.reloadSection(submitModalDlgParam.reloadElement,'','',false,false,'',false);
}
}else{
popOver.close();
}
};
},500);
});
</script>
Published March 24, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.