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.
Have you traced the validation conditions..? It should trace Page-Set Messages in the trace.
How do you trace the validation conditions? Using the Tracer during form submission?
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.
is your application launched using User Portal, Manager Portal or Dev Portal?
Does the UI (eg. Harness) displayed to user have an error section in it?
Where is your "Page-Set-Messages" added? PostActivity or PreActivity?
The application is being launched in Dev portal. The UI does not show an error message but a message appears in the clipboard page where the invalid property is found.
I did not use a Page-Set-Messages method, I was not sure about how to integrate that with a Validation condition.
Thanks for posting your query on PSC.
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 actually went into the Validation tab of the flow action to insert validation conditions instead of using an activity. Should I be using an activity instead?
Thanks for the update.
Could you try using activity and update me if it helps.
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!
I am glad it worked for you.
And, thanks for sharing the resolution which will help other PSC members. :)
Have a great day!!
I am also facing the same problem. Can you please share the screenshot of your implementation of pySetFieldDefaults and validation rfule.
Thanks in advance.
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?