Posted: 22 Nov 2017 2:16 EST Last activity: 23 Nov 2017 3:03 EST
Validation message in clipboard but not displayed to user
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?
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.
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.
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.
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.