Loading TOC...

MarkLogic 9 Product Documentation
alert:action-set-options

alert:action-set-options(
   $action as element(alert:action),
   $options as element(alert:options)
) as element(alert:action)

Summary

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

Parameters
$action The representation of an action.
$options The options to set for the given action.

Example

  xquery version "1.0-ml";
  import module namespace alert = "http://marklogic.com/xdmp/alert" 
		  at "/MarkLogic/alert.xqy";

  let $action :=
    alert:action-set-options(
        $action,
	<alert:options><sms:provider name="Verizon" domain="vtext.com"/>
	</alert:options>
    )
    => Returns the XML representation of the action with the options
       updated to <alert:options>
	             <myns:provider>Verizon</myns:provider>
	          </alert:options>

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