Question
Tech Mahindra
CA
Last activity: 23 Nov 2017 3:03 EST
Validation message in clipboard but not displayed to user
Hi All,
I am using Pega 7.2.1 and my validation rule (in the validation tab of Flow-action) error message is showing up in the clipboard page where the invalid property is located (page= AddEmp). However, no error message is displayed to the user/the user is not rerouted back to the incorrect form so the case just continues like normal. How do I make the message show to the user and not just the clipboard page?
Attaching screenshots.
Thanks in advance.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Hi Venkat,
Can you go through the suggestion provided by my colleague Rincy in this post and try accordingly to set the errors in the pyWorkPage or the solution.
Regards
Mahesh
Tech Mahindra
CA
Hi Mahesh,
Thanks for the response. i have gone through that post. According t that post
"I finally got it to work! I set my pages up from the start of the case using pySetFieldDefaults (which made a pyWorkPage.Order page), so then once I validated the property within the .Order page the message would automatically send to pyWorkPage which would be displayed to the user. Since I was validating within pyWorkPage I did not have to use a Pages & Classes reference tab, just entered .Order.Property in the Property field in the Validation tab."
But i am not able to understand how to set the pages in pySetFieldDefaults.
Can you please explain this.
Thanks in advance.
Pegasystems Inc.
US
That was the issue of the user, but in your case it might not be the same scenario Venkat. My suggestion for you was to check whether your Page is being referred in the loaded pyWorkPage. If your error page is not being referred in your pyWorkPage then the error wont be displayed in the UI, so Rincy had suggested in the other post to set the error messages to the pyWorkPage in your Post processing activity using Page-Set-Messages.
-
LAKSHMI MNSJ
Tech Mahindra
CA
Hi Mahesh,
Its not embedded page. Its created page which is referenced in Pages & classes tab of the section.
Let me explain what exactly i am trying to do.
1. Created a section and
In Pages & classes of the section :
AddEmp VF-Data-Employee
For Text UI Controls, i am referencing
AddEmp.EmpName
Then in flow-action,
Under validation tab, am referencing my validate rule.
when i click on submit of flow-action, I am expecting error message should be displayed on that page.
Instead it is setting the message to page (AddEmp) in the clipboard and moving forward.
Hi Mahesh,
Its not embedded page. Its created page which is referenced in Pages & classes tab of the section.
Let me explain what exactly i am trying to do.
1. Created a section and
In Pages & classes of the section :
AddEmp VF-Data-Employee
For Text UI Controls, i am referencing
AddEmp.EmpName
Then in flow-action,
Under validation tab, am referencing my validate rule.
when i click on submit of flow-action, I am expecting error message should be displayed on that page.
Instead it is setting the message to page (AddEmp) in the clipboard and moving forward.
Would like to display that message to user and should not move forward until successful validation.
-------------
e
Pegasystems Inc.
US
Hi Venkat,
Thanks for sharing your complete use case to understand where the exact problem exists. I had created your use case and seen the similar behavior of your's because the errors which were present in pyWorkPage and its embedded pages were only displayed in the UI. In your case the error was available in the different user page which doesn't belongs to pyWorkPage which is the reason the pyWorkPage doesn't have any error to fail the step.
So i had implemented the another approach which has to be followed for your requirement along with the your use case in the attachment.
Kindly go through it and change your implementation accordingly to achieve your requirement.
Regards
Mahesh
-
Naveen Ganguri
Tech Mahindra
CA
Hi Mahesh,
Thanks for your detailed reply and thanks for your time.
I have gone through the attached document. But i can't change the requirement now.
Need to find a solution to display a error message to user without doing any changes to the section.
I am searching for a way to copy that value from AddEmp.EmpName to pyWorkPage and perform the validation on it.
So that i can see error message on pyWorkPage which would be visible to users.
I hope you got my point.
Pegasystems Inc.
US
Hi Venkat,
Yeah you can try that also by calling an activity in your flow action post processing and check for the existence of any error messages on AddEmp page, if any error exists then set the same error to your pyWorkPage. Hope this might help you to fix the flaw in your current implementation without changing the current behavior.
Regards
Mahesh
Pegasystems Inc.
IN
Hi Venkat,
Check if your Harness has pyCaseErrorSection.
This section is there by default in Perform Harness and shows all the messages that your pyWorkPage has.
Please find screen as below:-
Pegasystems Inc.
IN
Hi,
Check whether "Always show" checkbox is checked in Display options tab of Perform Harness and see if that error is getting displayed now.