Method parameters

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:

Parameter

Description

this

Indicates the current element.

this.attName

Indicates attribute value of attName on the current element. For example: this.text

5

An integer.

5.5

A double.

true/false

A 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.attName

Indicates attribute value of attName on an element in the UI dom.
Example: myButton.text

container:name

Indicates 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.