Question
TCS
US
Last activity: 11 Dec 2015 22:03 EST
I want to close the window and the work item without the "Close Work item" pop up confirmation message, how do I do that?
I have a OOTB button which has "cancel" on click operation. If I want to close the window and the work item without the "Close Work item" pop up confirmation message, how do I do that? Please advise. I am using PRPC 7.1.7. Thanks!
Message was edited by: Kip Jackson Modified the title
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
JPMC
IN
Hello,
What is the popup message stating? Is it something like "are you sure you want to navigate" ?
If so 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.
note: include this in script tags.
TCS
US
Hi Ashish,
The message is rendered from pydirtycheckconfirm section. The message is "You are about to close a work item which has changes that have not been saved" with cancel and discard buttons. I would like to bypass this message and directly close the work item and window without the warning.
JPMC
IN
Hello Govindan,
Please try the above local change.
Pegasystems Inc.
IN
please refer OOTB section 'pxDisableClientDirtyDetection' available in @baseclass in ruleset 'Pega-UIEngine: 07-10-01' to disable the pop-up which basically contains the code shared by Ashish.
RABO BANK
NL
Hi Phani,
This section support to suppress "confirm close" but not saving pyWorkPage, can u suggest me how to save pyWorkPage along with avoiding "confirm close" model dialog
Pegasystems Inc.
IN
Hi Suresh, Good Morning!
could you please provide business use case and rule configuration screenshots.
Thank you!
psahukaru
RABO BANK
NL
Hi Phani,
Appreciate your immediate reply.
Scope : i want close "Work Object" without "pyDirtyCheckConfirm" pop-up but it should save pyWorkPage
When Work object is being closed we have a pop-up "pyDirtyCheckConfirm" , now am suppressing that pop-up with a non auto generated section with following HTML code
<script>
pega.u.d.gDirtyOverride=false;
</script>
It does avoiding pyDirtyCheckConfirm but not saving pyWorkPage.
Hi Phani,
Appreciate your immediate reply.
Scope : i want close "Work Object" without "pyDirtyCheckConfirm" pop-up but it should save pyWorkPage
When Work object is being closed we have a pop-up "pyDirtyCheckConfirm" , now am suppressing that pop-up with a non auto generated section with following HTML code
<script>
pega.u.d.gDirtyOverride=false;
</script>
It does avoiding pyDirtyCheckConfirm but not saving pyWorkPage.
Please suggest me
Thanks in advance Phani
Pegasystems Inc.
IN
>>> i want close "Work Object" and save pyWorkPage
- would it make sense to try Save onClick event followed by cancel embedded with 'pxDisableClientDirtyDetection' section or
- Obj-Save in an activity invoked from onClick event should work.
Please share your observations. Thank you!
psahukaru
note: sorry Suresh, having no idea on use case - the interaction Cancel with Save might not make a valid business pattern
RABO BANK
NL
Let me put in different way, can we close Work Object with out confirm close pop up and it should save work object info, i mean can we write a query for force Save to avoid close confirm.
Pegasystems Inc.
JP
Can you share the screenshot?
I just tried on my local PE 7.1.7, and confirmed that the OOTB "Cancel" button of flow action does NOT popup any dialog.
TCS
US
Thanks Ashish and Phani. Disabling the flag bypassed the pop up dialog. Between @phani can you tell me how did you navigate to this section?
@Chunzhi. Sorry. Cannot share the screen shot due to client policies. I can tell you that this is from my perform harness after doing some UI changes. Normal scenario it wont pup up. If you have UI changes like data being entered, you would be pop'ed up with this warning.
Pegasystems Inc.
IN
>>> how to navigate to this section...
we need to include this section either in our harness rule or at the section rule where we want to disable the popup.
TCS
US
I just found out that using script function doClose() on click of OOTB cancel button will just close the window and work item without the warning message. This too can be used.
Pegasystems Inc.
US
you can also include pzpega_ui_resetDirtyState js file in your perform or confirm harness to clear the dirty flag.
can we call pzpega_ui_resetDirtyState script on button action ?
Pegasystems
US
When defining your button in designer studio, choose the action that says close-this-window. Does that do it ? /Eric
I don't see this action on button.
is this a script. please note we are using Pega 7.1.7
Pegasystems
US
I've attached some snapshots of setting up the "close" action on a button. Enjoy /Eric
-
Aswini Jasty Naveen kumar
Hi Eric,
I have tried this even earlier,This does not close work object it would only close pop ups.
Pegasystems
US
Come to think of it, I was using a popup when I used that action. If it is advertised as to only-close-a-popup, my apologies for not noticing that in the documentation. /Eric
Pegasystems Inc.
IN
could you please try onClick event, Cancel and share your observations? Thank you!
Calling script "pega.u.d.clearDirtyState" on button action
and then calling cancel action is not throwing pyDirtyCheckConfirm popup.
Pegasystems Inc.
IN
>>> Calling script "pega.u.d.clearDirtyState" on button action
- could you please refer OOTB section 'pxDisableClientDirtyDetection' available in @baseclass in ruleset 'Pega-UIEngine: 07-10-01' to disable the pop-up instead of run scrip
Please share your observations, Thank you!
psahukaru