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

Warning Popup for Temporary Work Objects

SA-14774

Summary



The warning popup occurs even when transitioning away from a screen coupled to a temporary Work Object.

"You are about to replace an open work item which has changes that have not been saved.
Press OK to continue and lose your changes.
Press Cancel to return to the modified form."

Steps to Reproduce

  1. Open a temporary work object within flow processing.
  2. Modify a field in the section containing values coupled to the temporary workobject.
  3. Close the temporary work object. 
  4. Observe the pop up warning.


Root Cause



The Out-Of-The-Box behavior is to warn the user if the work object in question has updates which have not been saved to the database regardless of temporary status.

Resolution



Perform the following local-change: 

Update the rule UserWorkForm with the following code block:

<script>

var tempObj = "<pega:reference name='.pyTemporaryObject' mode='normal' />";

if (tempObj == "true")

{

if (parent && parent.pega && parent.pega.u && parent.pega.u.d) {

parent.pega.u.d.gDirtyOverride = false;

}

pega.u.d.gDirtyOverride = false;

}

</script>

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

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