Question
Virtusa
IN
Last activity: 19 Oct 2016 9:58 EDT
Page-Set-Error message
Hi,
I'm doing a page-set-message on a particular property if the validation of that property fails. Now the error section at the top shows the pagename along with the error message. E.g. .VisitMain(pagename):You have error. Now what I need is that along with page name it should also show the property name where that particualr validation has been failed.
E.g. .VisitMain(pagename)
-Property1: Error
-Property2: Error.
Please suggest ASAP.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Blue Rose Technologies GmbH
DE
Hi,
Have you tried Property-Set-Messages method, this will set the error message onto the property directly.
Blue Rose Technologies GmbH
DE
Courtesy Pega7 help documentation
Virtusa
IN
Hi sents,
Property-Set-Message associates the particular message with the particular property as far as i know(Correct me if I'm wrong, I'm fairly new in Pega). So can this Property-Set-Message show messages above the page like in Page-Set-Message?
Blue Rose Technologies GmbH
DE
If the property being validated is not present in the form then it will be shown in the form level as page messages.
Incessant Technologies
GB
If you are using property-set-messages,then if the property which you are validating is not present on the UI or if it is readonly,then by default validation will be shown on the top.otherwise it will be shown on the property on which u are validating.
Virtusa
IN
Hi Srijith,
Thanks for your response. But my property is visible and editable in the UI. But I want to validate that particular property and if the validation fails, I want to show it at top of page along with the property names.
Regards,
Pankaj
Areteans Technologies
AU
In harness rule select show field level error message on top of screen checkbox is suitable for this functionality.
Virtusa
IN
Hi Dharani,
I tried out this part. But in the harness rule under field level error message part there are two options but none of them is to show error on top of the page. Please suggest ASAP.
Regards,
Pankaj
Blue Rose Technologies GmbH
DE
There is something called always show form level errors option. This will display the error table(in form level) eventhough the property has validation errors.