Loading TOC...

trgr.triggerEnable

trgr.triggerEnable(
   trigger-name as String
) as null

Summary

Enables the named trigger.

Parameters
trigger-name The trigger name.

Usage Notes

This function must be run in the context of the database containing the trigger to be enabled. If no trigger named $trigger-name exists, the exception TRGR-TRIGGERDNE is raised.

Example

// Run in the context of the database containing the trigger.

declareUpdate();
const trgr = require('/MarkLogic/triggers');

trgr.triggerEnable('myTrigger');
   

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.