Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

How to localize specific Errors section in the application

SA-35367

Summary



User is setting the browser locale top other language, when accessing the application, the error messages are not needed to get localized.

On analysis, it is found that that the error messages are displayed from final rules.


Error Messages



Not Applicable

Steps to Reproduce



1. Setting the browser language to es_MX.
2. Consider there are two modules. Module1 and Module2, which uses two different rulesets.
3. Create a section in each of the module with a Submit button.
4. On click of submit button an activity should be called which will use the method Page-Set-Message to set the message on screen.
5. Requirement is that,
1. Module 1 “Errors” ,“PleaseCorrectErrors” and "this field may not be blank" label should be localized.
2. Module 2 “Errors” ,“PleaseCorrectErrors” and "this field may not be blank" label should be localized should not be localized.


Root Cause



As the errors section is from Final rule, the localize checkbox available on section cannot be unchecked.


Resolution



Perform the following local-change:

1. Create CustomError section at the Harness level.

2. In order to display the errors which are set from the activity using Page-Set-Messages, user need to configure:

a. A label in the error section with the text <%tools.putParamValue("ErrorMsg",tools.getPrimaryPage().getMessagesAll());%><pega:reference name="param.ErrorMsg" mode="literal"/>




b. From activity, set Page-Set messages and see that you refer the correct page. In the above scenario, PrimaryPage is referred


Suggest Edit

Published April 11, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us