Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

clearErrorMessages(errorMsgConfig)

Updated on July 20, 2021

Deletes the error messages associated with a specific context or app container.

Returns

Not applicable.

Parameters

NameTypeDescriptionRequired
errorMsgConfigerrorMsgConfigThe object containing information specifying the error messages that are deleted.
Note: For more information, see errorMsgConfig.

Usage example

In the following example, the API deletes error messages at the app/primary level that belong to HTTP category.

getPConnect().clearErrorMessages({category: "HTTP", context: "app/primary"});

In the following example, the API deletes error messages at the app level that belong to the HTTP category.

getPConnect().clearErrorMessages({category: "HTTP"});

In the following example, the API deletes error messages related to the firstName property.

getPConnect().clearErrorMessages({property: ".firstName"});
  • Previous topic Directly accessed PConnect APIs
  • Next topic createComponent(meta, dataSource, index, additionalPropsToComp)

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us