Loading TOC...

MarkLogic 9 Product Documentation
alert.actionSetModule

alert.actionSetModule(
   action as Object,
   module as String
) as Object

Summary

This function returns the action with the module of the action updated.

Parameters
action The representation of an action.
module The module value to set for the given action.

Example

  var alert = require("/MarkLogic/alert.xqy");

  alert.actionSetModule(
       alert.getActions("http://acme.com/alert/message-board", ["sms"])[0],
       "/modules/sms.xqy")

   => Returns the JSON representation of the action with the module 
      updated to "/modules/sms.xqy"
  

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