Skip to content

Commit a507762

Browse files
authored
Update consistency-checks.md
1 parent ea6318b commit a507762

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/consistency-checks.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ Consistency checks allow your extension to validate custom blob documents and di
1414
* This how-to uses the results of [Get Started with the Web Extensibility API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/getting-started/). Complete that how-to before starting this one.
1515
* Familiarize yourself with creating custom documents as described in [Custom Blob Documents](/apidocs-mxsdk/apidocs/web-extensibility-api-11/custom-blob-document-api/).
1616

17-
{{% alert color="warning" %}}
18-
Do not modify the blob document or its dependencies during consistency checks. Saving is blocked at this point because changes could interfere with the checks and leave the app in an invalid state.
19-
{{% /alert %}}
20-
2117
## Basic Example
2218

2319
Based on the code described in [Custom Blob Documents](/apidocs-mxsdk/apidocs/web-extensibility-api-11/custom-blob-document-api/), this section defines consistency checks for the first name field and shows how to display errors, warnings, and deprecation notices in Studio Pro's **Errors** pane.
@@ -112,7 +108,9 @@ Every `errorCode` returned by your check function must be listed in `reservedErr
112108

113109
This error also appears if one of your checks throws an unexpected exception. To find out what the exception was, check the Mendix logs.
114110

115-
You cannot call save operations on the model API while consistency checks are running. If you do, an error throws and the generic error appears in the **Errors** pane again.
111+
{{% alert color="warning" %}}
112+
Do not modify the blob document or its dependencies during consistency checks. Saving is blocked at this point because changes could interfere with the checks and leave the app in an invalid state.
113+
{{% /alert %}}
116114

117115
{{% alert color="info" %}}
118116
The check function is async, so you can use `await` when loading other model elements to validate references.

0 commit comments

Comments
 (0)