diff --git a/website/docs/help-and-support/troubleshooting-guide/cyclic-dependency.md b/website/docs/help-and-support/troubleshooting-guide/cyclic-dependency.md new file mode 100644 index 0000000000..4690b5b594 --- /dev/null +++ b/website/docs/help-and-support/troubleshooting-guide/cyclic-dependency.md @@ -0,0 +1,34 @@ +# Cyclic Dependency Errors + +A cyclic dependency occurs when two or more components depend on each other, either directly or indirectly, creating a loop. This page provides information on cyclic dependencies, and how to identify and resolve them. + + +#### Using Table properties in column validation + + + +#### Cause + +This error occurs when you try to use a Table widget's property inside the Table column validation. For example, using `Table1.updatedRow` inside the column validation property creates a cyclic dependency. This means that the validation logic relies on a property that is itself dependent on the result of the validation, causing an infinite loop of dependencies. + +```js +//Cyclic Dependency: +{{Table1.updatedRow.created_at}} +``` + +#### Solution + +To resolve this issue, use `{{currentRow.name}}` in the Table column validation property instead of `Table1.updatedRow` or `Table1.newRow`. + +
+ +*Example:* + +```js +//No Cyclic Dependency: +{{currentRow.created_at}} +``` + +
\ No newline at end of file diff --git a/website/docs/help-and-support/troubleshooting-guide/widget-errors.md b/website/docs/help-and-support/troubleshooting-guide/widget-errors.md index 552277a051..6abd35b84b 100644 --- a/website/docs/help-and-support/troubleshooting-guide/widget-errors.md +++ b/website/docs/help-and-support/troubleshooting-guide/widget-errors.md @@ -121,4 +121,6 @@ This error occurs when there are duplicate values in the options property of the #### Solution -To resolve this error, ensure that each value in the options property of the Select widget is unique. You can do this by checking the values and making sure that there are no duplicates. \ No newline at end of file +To resolve this error, ensure that each value in the options property of the Select widget is unique. You can do this by checking the values and making sure that there are no duplicates. + + diff --git a/website/sidebars.js b/website/sidebars.js index c4f8f3529c..c374a9228f 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -846,6 +846,7 @@ const sidebars = { 'help-and-support/troubleshooting-guide/action-errors/README', 'help-and-support/troubleshooting-guide/git-errors', 'help-and-support/troubleshooting-guide/gac-errors', + 'help-and-support/troubleshooting-guide/cyclic-dependency', ], }, // 'help-and-support/troubleshooting-guide/js-errors',