We have a requirement to show dirty pop up when user click on a button while working on a case in perform harness. Button presents in "pyCaseHeaderOuter" section specific to our application and on click of that button local action will launch a model dialog.
When user has edited some fields on the screen and click on the button "X" in "pyCaseHeaderOuter" section, we should display a dirty pop up with "You are about to discard your unsaved changes" before mode dialog launches on the screen.
Create a non auto-generated section with below script
pega.u.d.gDirtyOverride = true;
Embed non-autogenerated section rule on top of the screen main section which has editable fields on the screen.
Launch the portal and direct to required screen of WO and edit some of the fields in main section which is mentioned on step 2.
Add refresh other section on click of button "X" on "pyCaseHeaderOuter" section to refresh the editable fields main section.
Please help if anyone is having an idea why embedded script is not working and why we are not getting the dirty pop up on customized button click when user has edited fields on the ui ?
***Edited by Moderator Marije to change Content Type from Discussion to Question; added capability tags***