Loading TOC...

trgr.triggerSetDescription

trgr.triggerSetDescription(
   trigger-name as String,
   description as String
) as null

Summary

Sets the description of the named trigger.

Parameters
trigger-name The trigger name.
description The new trigger description.

Usage Notes

This function must be run in the context of the database containing the trigger whose description is to be changed.

If the named trigger does not exist, the exception TRGR-TRIGGERDNE is raised.

Example

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

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

trgr.triggerSetDescription('currentName', 'newDescription');
   

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