clearErrorMessages(errorMsgConfig)
Deletes the error messages associated with a specific context or app container.
Returns
Not applicable.
Parameters
Name | Type | Description | Required |
errorMsgConfig | errorMsgConfig | The object containing information specifying the error messages that are deleted. | ✅ |
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)