Question
Sberbank
RU
Last activity: 4 Mar 2016 15:47 EST
Cancel button
Requirement is to implement Cancel button, which introduces following behaviour:
1) If there are some unsaved changes, confirmation dialogue should be shown
2) If there is some incorrect input user shouldnt be presented with validation messages as he or she cancels input data
3) All unsaved data should be discarded
4) After canceling local\flow action user should be presented with current work item
Scenario 1
1) Run local action
2) Make some changes by editing fields
3) Cancel action by invoking Review action assigned to Cancel button
4) Review harness opened
5) No warning message about unsaved changes
Scenario 2
1) Run local action
2) Make some changes by editing fields
3) Cancel action by invoking Cancel action assigned to Cancel button
4) Confirmation dialogue about unsaved changes is shown
5) Click button with Cancel action assigned
6) Work item is closed
In scenario 1 there is no confirmation message which leads to possible loss of data.
In scenario 2 work item is closed and validation checks may be performed which is unacceptable to end user.
How to implement required behaviour without javascript customization?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
Upon reviewing the corresponding SR, we see that it has been resolved. SA-20496 has been generated as a result. Please reference that if you have the same question.
Pegasystems Inc.
IN
would it be convincing to have TWO cancel buttons with different configurations validating the scenarios based on visible when conditions?
please share your thoughts/comments, Thank you!
Sberbank
RU
Please provide more details on your solution.
Pegasystems Inc.
IN
Hi Andrey,
This is to inform you that I am handling your SR.
What is happening you are pressing Cancel button, the work item is getting closed.
So we can try that after cancelling , open- by- handle and then pass pzInskey.
Please let me know if you have any queries.
Sberbank
RU
Hi, Suruchi,
Thank you for your suggestion.
1) Combination of Cancel + OpenByHandle results in situation where system tries to open work item that hasn't been closed for some reason (in the same tab).
So user gets js message: Are you sure you want to open already opened work object?
2) In case of changes Pega will show dirty check dialogue. If user choose Cancel in that dialogue run of OpenByHandle wont be necessary.
Updated: 18 Jan 2016 3:48 EST
Pegasystems Inc.
IN
Hi Andrey ,
see if this works for you.
Regards
Suruchi Gupta
Sberbank
RU
Hi, Suruchi.
You suggest to use Confirmation dialogue which emerges anytime you click submit button.
I am looking for solution that performs dirty check. So warning will emerge only if users cancels unsaved changes.
Please, look at description of request more thoroughly.
Pegasystems Inc.
IN
Hi Andrey,
Thanks for the reply. Ok , i will suggest some other solution.
Regards
Suruchi Gupta
Pegasystems Inc.
IN
Hi Phani,
This is to inform you that i am trying to design his requirement. In the meantime, can you please suggest something.
Regards
Suruchi Gupta
Accepted Solution
Pegasystems Inc.
US
Upon reviewing the corresponding SR, we see that it has been resolved. SA-20496 has been generated as a result. Please reference that if you have the same question.