
trgr.triggerSetRecursive( trigger-name as String, recursive as Boolean ) as null
Sets the recursive setting of the identified trigger. When the recursive setting is true, the trigger will trigger itself for recursive changes to the same document.
| Parameters | |
|---|---|
| trigger-name | The current trigger name. |
| recursive | The new recursive value for the specified trigger. |
If the named trigger does not exist, the exception
TRGR-TRIGGERDNE is raised.
declareUpdate();
const trgr = require('/MarkLogic/triggers');
trgr.triggerSetRecursive('myTrigger', true);
// Empty sequence. Sets the named trigger to be recursive.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.