Question


Bank of America
IN
Last activity: 13 Oct 2015 13:06 EDT
cancel button displays error message
On submit click, UI throws validation error message as expected. After that I clicked on cancel button. Expected behavior is, it should simply show the review harness without any error message. But, Review harness shows the previous error message from submit click.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution


Pegasystems Inc.
IN
UI-Kit version 03-01-01 seems to have fixed this issue.So it's fixed from ML8 onwards and not ML7.


Pegasystems Inc.
IN
Hi Pradeep,
Couple of questions !
1. Which version of PRPC you are on ?
2. How you are enforcing the validation ?
3. Are you doing a page set message to store the message on clipboard ?


Bank of America
IN
Hi Santanu,
1. the version I am using is 7.1.7
2. Yes, I am using a validation & activity rule on submit. This is functioning as expected.
3. For a complicated validation, I am using activity. I use Page-Set-Message on pyWorkPage
Updated: 10 Aug 2015 7:51 EDT


Pegasystems Inc.
IN
Thanks.
I will do some research in my lab and get back to you on this.


Pegasystems Inc.
IN
Hi Pradeep,
I have been able to see the issue that you have reported on my lab system and also identified a solution that you can try at your end .
Step I followed
1. Created a validate rule
2. Used it in the validation tab of the flow action
3. Fired the validation at run time by giving wrong value and clicking submit
4. Now click Cancel.
5. It opens up the case on review mode and also displays the error message on top and bottom of the harness
Find below is the screenshot of the issue :
To counter this issue I tried the below.
1.Create an activity which has a single step that performs page-clear message ( Find screenshot below )
Hi Pradeep,
I have been able to see the issue that you have reported on my lab system and also identified a solution that you can try at your end .
Step I followed
1. Created a validate rule
2. Used it in the validation tab of the flow action
3. Fired the validation at run time by giving wrong value and clicking submit
4. Now click Cancel.
5. It opens up the case on review mode and also displays the error message on top and bottom of the harness
Find below is the screenshot of the issue :
To counter this issue I tried the below.
1.Create an activity which has a single step that performs page-clear message ( Find screenshot below )
2 Open the section : pyCaseActionAreaButtons in your local ruleset and then change the action set of cancel button by adding the "Run Activity " first , followed by review. Find below screenshot
Hope this workaround helps you to get rid of the issue.


Bank of America
IN
Thanks Santanu! this works.


Pegasystems Inc.
JP
Is this work around solution reflected in ML 8 or later version as OOTB feature?


Pegasystems Inc.
IN
I have raised a Bug for the same with the concerned team and this will be reflected in future ML releases.


Pegasystems Inc.
JP
There is another client side validation issue related with "Cancel" button, which has been reported as below, And I think these two should be solved at the same time.


Pegasystems Inc.
IN
This one is already handled and fixed from ML7 onwards. Let me know if you are still facing this issue


Pegasystems Inc.
JP
No, It isn't solved yet.
We have tested both ML 7 and ML 8, both version still performs client side validation on cancel action.


Pegasystems Inc.
IN
Can you check if Action buttons section is not overridden in your application. I am quite sure this was already handled. Let me also double check in my machine.


Pegasystems Inc.
JP


Pegasystems Inc.
IN
Hi Chunzhi,
Can you also confirm if ML8 is using UI-Kit:03-01-01 and you are facing issue in ML8 also.
I have checked in ML8 and ML9 and I was unable to reproduce the issue.


Pegasystems Inc.
JP
Our application is built on ML7 and we imported it to ML8 server.
Since the UI-Kit is part of the application rule stack, we still use UI-Kit-7:02-01-01 on ML8 server.
Accepted Solution


Pegasystems Inc.
IN
UI-Kit version 03-01-01 seems to have fixed this issue.So it's fixed from ML8 onwards and not ML7.


Pegasystems Inc.
JP
Hi Pankaj,
I am no very clear about why UI-Kit is not part of PRPC base application, can you tell me the reason?


Pegasystems Inc.
US
We are facing this issue too. We have a few FlowActions on the screen and Cancel is one of them. WHen ever we fire a different FLowAction, it is firing the client validation errors. How do we get around this?


Pegasystems Inc.
IN
Which version are you using ?


Pegasystems Inc.
US
We are using ML8 and CS for Insurance 7.13.


Pegasystems Inc.
IN
Can you please check pyCaseActionAreaButtons is not overridden.
As a workaround you can paste and use the below script in UserWorkForm fragment.
<script language="javascript">
pega.u.d.bClientValidforReviewAction = false;
</script>


Pegasystems Inc.
IN
Could you also provide snapshot of OOTB "Cancel" button action configuration which is causing this issue.


Bank of America
IN
Hi Pankaj,
Issue solved by following Santanu's solution. But to answer your question, there are multiple cancel buttons on pyCaseActionAreaButtons sections. Few of them have "Cancel" as button click action. Others have "Launch Review harness". So, when you have "Launch Harness" on cancel button as action, this button does not behave like a cancel button, instead it acts like a normal submit button. This is causing the issue.