Template Engine language reference > Message interface > Referencing blocks and fields in blocks

Referencing blocks and fields in blocks
Block reference
A reference to a block in a Message is defined using the following syntax:
$message.<blockName>[<blkInstance>]
For example, if you want to reference the third instance of the block blkA you must define this reference as $message.blkA[2] in the template.
Note:
Reference to fields in blocks
A reference to a field in a block is defined using the following syntax:
$message.<blockName>[<blkInstance>].<fieldName>
For example, if you want to reference the field description in the third instance of the block blkA you must define this reference as $message.blkA[2].description in the template.
Reference to a sub-block
A reference to a sub-block is defined using the following syntax:
$message.<blockName>[<blkInstance>].<blockName>[<blkInstance>]
For example, if you want to reference the first instance of the block blk4 in the third instance of the block blkA you must define this reference as $message.blkA[2].blk4[0] in the template.
OpenText StreamServe 5.6 Updated: 2013-03-01