Loading TOC...

alert.actionSetModuleRoot

alert.actionSetModuleRoot(
   $action as Object,
   $module-root as String
) as Object

Summary

This function sets the module root of a given action.

Parameters
$action The representation of an action.
$module-rootThe new modules root for the action.

Example

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

  alert.actionSetModuleRoot(
         alert.getActions("http://acme.com/alert/message-board",  ["sms"])[0],
         "/root")
  

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy