Use the Page-Set-Messages method to add a message to a clipboard page. Like a message associated with a property, a message associated with a page normally prevents the page from being saved into the database. If the page is an embedded page, the message is added to all its parent pages.
A later Page-Clear-Messages method applied to the same page removes the messages set by this method. In addition, page messages are cleared when a workstation user submits an HTML form to the Pega Platform server that includes values for properties on that page.
This method has three parameters:
Enter a named page from the
Pages & Classes
contain the message. Use the keyword
This field is optional. If you leave it blank, the system uses the step page, or the primary page if no step page is specified.
|Category|| Enter a localization category that is the second key part of a field value.
The default is pyMessageLabel.
Otherwise, leave this field blank.
Identify the message to add to the page. You can enter values in this field in
one of the following ways:
The message becomes associated with the page as a page message.
Checking the method status
This method updates the pxMethodStatus property. See How to test method results using a transition.