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

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>


Suggest Edit

Published March 24, 2017 - 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