Question

SUPPORT ARTICLEYou are about to close an open work item which has changes when open assignment.

Before Moving to issue, please find below the scenario:

1. User click work item/task from work list, system will open the work item on Perform Harness2. User check the  all transaction details of work/task then change the transactionr resolved status to yes .3. System will show the Preview Completion button 4.User Click Preview Complete button , system will show Modal window with Task details, Related work items(get it from background based on current work item) and Confirm completion button5. As per implementation ,If user clicks Confirm completion button system should do two things 1.Current work item should resolved , 2.system should open next related work item /task.

Following Actions configured in Confirm completion button

1. Activity -pxAttachNote (OOTB Activity)2.Activity -UpdateStatus  (OOTB Activity)3.Activity- FinishAssignment (OOTB Activity)4.openAssignment (Action)

Issue Facing.

currently pega shows Popup /confirmation window with warning message before shows related work item. Message is "you are about close an work item which has changes that have not been saved". I have tried following script "pega.u.d.ignoreDirtyState=true" included in section which is embedded in Perform Harness.but system still shows warning popup.

I have traced events tracer,warnings message triggered before execute openAssignment Action.

This requirement enhancement of existing production functionality.Could you guys please assist me to resolve this issue?

Pega Version: PRPC 7.1.8

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

November 24, 2015 - 6:08pm

Hello,

The script should be pega.u.d.gDirtyOverride = false;

Add it in any of your section if you need it locally or if you need this feature across system, you can add this java script flag in the HTML rule called userworkform.

Another option is to include OOTB section @baseclass.pxDisableClientDirtyDetection in your harness section.

Another option is to include pzpega_ui_resetDirtyState js file in your harness to clear the dirty flag.

Try with the option which is most appropriate to your use case

November 25, 2015 - 10:05am

I have added pxDisableClientDirtyDetection section to harness, issue is resolved. Thank you so much for your help.

November 25, 2015 - 11:29am
Response to BahurdeenAli

Glad to know that it helped, please mark the thread as answered so that the thread gets closed. (Mark the reply as correct answer)

June 15, 2017 - 3:53am

Hi Amit, I tried below 2 options in my Perform Harness but to no avail

 

Another option is to include OOTB section @baseclass.pxDisableClientDirtyDetection in your harness section.

Another option is to include pzpega_ui_resetDirtyState js file in your harness to clear the dirty flag.

I have a submit button on Perform Harness on which I am calling Finish Assignment after making UI changes, Each time, this pop -up comes up when i click on Submit button.

May 16, 2018 - 11:39pm
Response to CHARUS30

Include OOTB section @baseclass.pxDisableClientDirtyDetection in your harness section . It definitely works