Question

10
Views
Roshan Ammanur Pattabiraman (RoshanAP)
CGI
Senior Consultant
CGI
CA
RoshanAP Member since 2014 2 posts
CGI
Posted: 3 weeks 5 days ago
Last activity: 3 weeks 5 days ago
Posted: 26 May 2021 13:16 EDT
Last activity: 26 May 2021 16:03 EDT

Get messages from page without formatting it

Hi team,

 

I have a requirement where I need to get messages that are in page without formatting it.

 

Take below Scenario.

I have myStepPage which has a message "NonCompliantValue". The application has a message rule "NonCompliantValue" which formats the message to "This value is not compliant". I need to build a function that retrives the message without formatting it. the function should return "NonCompliantValue" and not "This value is not compliant". I am aware that there are several functions to retrieve error messages as formatted text (Eg: getMessagesAll). But I could not find any function to get a message without formatting. If needed, I can build a new java function to retrieve messages without formatting, but there's no JAVA function to retrieve messages without formatting as well. I reviewed below link to check if there's any function.

https://community.pega.com/sites/default/files/help_v85/javadocs/com/pega/pegarules/pub/clipboard/ClipboardPage.html

 

Please let me know how I can build a function that suits my requirement.

 

Regards,

Roshan

***Edited by Moderator Marissa to update Platform Capability tags****
Pega Platform 8.5.2 User Experience System Architect