Question
Running Case Type : You are about to close an open work item which has changes that have not been saved
I saw related topics nothing was helpful for me. Please help on this issue.
When i was trying to run the case am getting this Confirm close message saying as "You are about to close an open work item which has changes that have not been saved.". I gave Discard and Cancel nothing is responding.
Not only Case Type, i tried to delete a class of a particular case type, there also am getting the same message.
Really appreciate your help on this, Thank you.
***Updated by moderator: Lochan to add Categories***
This looks like a known issue that crops up once and awhile. Please try this solution :
Embed the code below in the UserWorkForm or in the embedded section within the harness.
pega.u.d.ignoreDirtyState=true
PDN reference for above : https://pdn.pega.com/support-articles/error-message-pops-refresh-instead-confirm-close-msg (please set the Java script flag as pega.u.d.gDirtyOverride = false; in any of your section if you need it locally or if you need this feature across ur system, you can add this java script flag in the HTML rule called userworkform.)
Alternative solutions found on PDN :
https://pdn.pega.com/community/pega-product-support/question/you-are-about-close-open-work-item-which-has-changes-have
https://pdn.pega.com/support-articles/pegas-default-popup-gets-displayed-review-harness
Alternative solution on in-house discussion :
It is not Error message. In general Pega OOTB activity Finish Assignment is called after clicking on Submit or Next Button. In this activity Obj-Save is performed to save the inputs given in section.
In above scenario just inputs are given to case and data is not saved to Work Object. So Pega internally throws an alert message “You are about to close an open work item which has changes that have not been saved”. This is default Pega behavior.
If requirement specifies not to display this message then need to customize OOTB activity.