Question
Unilever
IN
Last activity: 2 Apr 2018 6:01 EDT
Difference between the on click "Close" event and the "Cancel" event.
Can anyone please point out where to use on click "Close" event and "Cancel" event? If anyone please elaborate the use of these two events, that would be great!
Thank you in advance.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
No it doesn't close the work object. Cancel button has the Transition options like None, Move Backward, Move Forward, Go Home, i suspect you might be using with default value None that is the reason it is closing the work object. But in case of Close action you wont have these options to navigate through the states of work object.
Pegasystems Inc.
IN
Hello Pallabi,
Please go through below article
https://pdn.pega.com/how-do-i-cancel-key-or-click-events-web-controls
Thanks,
Arun
Pegasystems Inc.
US
Hello Pallabi,
Close -> Provides an explicit close action for an overlay. Overlays, configured by specifying the Launch>Local ActionTarget as an Overlay, close automatically when the user clicks outside of the overlay.
Cancel -> Closes the current form without applying any changes.
This is what the documentation says about these two actions, hope it might be clear for you.
Regards
Mahesh
Unilever
IN
Hi Mahesh,
Thanks for replying. If I use a on click close action in a button inside a section without configuring any pop ups, will it close the work object? (Instead of "close", if I use "cancel" the work object is getting closed)
Thanks,
Pallabi
Accepted Solution
Pegasystems Inc.
US
No it doesn't close the work object. Cancel button has the Transition options like None, Move Backward, Move Forward, Go Home, i suspect you might be using with default value None that is the reason it is closing the work object. But in case of Close action you wont have these options to navigate through the states of work object.
-
Mike Helene Labrado
Unilever
IN
Thank you so much!
Pegasystems Inc.
US
You're welcome.
capgemini
IN
Series of OOTB rules gets called when user clicks on close and cancel buttons respectively in context of an Overlay or modal dialogue mentioned as below ...
close:
1.submitmodalflowaction
2. pymodalcancelaction
3.pymodalpagecancellation
cancel:
-------------
1.pydeletedocument
2.doclose
3.pzDestroychangetracker
4.closeworkitem
5.preclose
6.postcloseresponse
7.harnesscloserespobne
8.closedefault
9.close
10.workunlock'
11.removethread
12.pzupdateelementmodel
13.pzTrackChanges
As its clear from the above points that Cancel calls workunlock activities , so its deals with releasing lock for the case closing current harness etc, while close works on the context of the main WO from which the flow action has been invoked and once the current screen closes , the focus stays on the main screen without releasing lock for the WO.
-
Chris Olson Sowmya Narahari