Posted: 15 Aug 2016 14:39 EDT Last activity: 4 Oct 2018 13:54 EDT
Validation message in clipboard page but not displayed to user
I am using Pega 7.2.1 and my validation rule error message is showing up in the clipboard page where the invalid property is located (page= order). 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?
I have attached screenshots of the clipboard page with the error message and the validation rule.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Yes. So the logic is that if pyWorkPage has messages as seen in clipboard, then it should not allow the submit action on flow action to move the screne forward. The fact that screen moved on to next screen means the messages were cleared.
From the provided screenshots, I see you are using Pega 7.2.1 and referring the message is appearing in the clipboard page - order. I assume you are using activity which is called at post activity of the flow action. If yes, in the activity, when you call the Page-Set-Messages method, instead of referring the order page try to refer the pyWorkPage (configuring the same under Pages and Classes with the data class of order page). This should help you see the messages in the UI.
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. Thank you for the suggestions!
Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s available on the top right pane of this page. Once created, please reply back here with the URL of the new post.
You may also refer this discussion link as a reference in the new thread.
Thank you for the replies! I am not using an activity, just a validation, which evaluates the page after submission. Since I am not using an activity, I did not include a Page-Set-Messages method, just the validation function as shown in the shot. There is no Page-Set option for the validation. Should I be using an activity instead?