You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/consistency-checks.md
@@ -413,22 +423,6 @@ Return `dependentElementIds` to tell Studio Pro which elements your document dep
413
423
Without dependency tracking, your checks only run during full consistency check runs. With dependency tracking, checks run immediately when referenced elements change.
414
424
{{% /alert %}}
415
425
416
-
### Excluded Documents
417
-
418
-
If a document you reference is excluded, you must check for it using the following code:
if ("document"incustomDoc&&customDoc.document.excluded) {
424
-
result.push({
425
-
errorCode: DOC_EXCLUDED,
426
-
errorDescription: "Referenced document is excluded",
427
-
severity: "error"
428
-
});
429
-
}
430
-
```
431
-
432
426
### Changed Elements
433
427
434
428
When one of your dependencies gets modified in Studio Pro, you can return a consistency error based on that change. To be notified when any element (document or entity) changes, subscribe to the `documentsChanged` event.
0 commit comments