Method parameters

This document lists the format of method parameters that you can use in:

  • Method calls on objects as XML event handlers
  • UI XML document resolution syntax

The following table describes formats that you can use for parameters that you use in declarative method calls:

ParameterDescription
thisIndicates the current element.
this.attNameIndicates attribute value of attName on the current element. For example: this.text
5An integer.
5.5A double.
true/falseA boolean.
"string"A string surrounded by double quotes.
- To include a freestanding " (double quote), use \"  
- To include a freestanding \ (backslash), use \\
Example: "Dave said \"hello\" "
'string'A string surrounded by single quotes.
- To include a freestanding ' (single quote) use \'
- To include a freestanding \ (backslash), use \\
Example: 'Dave said \'hello'\ '
elementId -An element in the UI dom.
Example: myButton
elementId.attNameIndicates attribute value of attName on an element in the UI dom.
Example: myButton.text
container:nameIndicates an object in the given container. Container names include mcomacro and document.
Example: container:nxml
Note: You can add additional containers through the ClientSession interface.
container:name.method(... )Indicates a method call on an obect in the given container.
Example: mco:myMco.do()
name.method(...)Indicates a method call on a system service availabe in XML. 
Example: XPathService.evaluateAsString( '/button/text()' )
Note: You can add System services through the ClientSession interface.