Script functions reference > Script functions in alphabetical order > M > MsgGetValue

MsgGetValue
Syntax
MsgGetValue(field);
field
Description
Retrieves the value of a specified field.
Returns
str_fieldval
Examples
In the following examples, the Message contains the blocks blkA, blkB, and blkC structured as shown in the figure below.Click to enlarge
Example 77
The following Before Message script returns the value of the field idType in the second instance of block blkA:
$fieldValue=MsgGetValue("blkA:2/idType");
 
Example 78
The following Before Message script returns the value of the field idType in the second instance of block blkB in the first instance of block blkA:
$fieldValue=MsgGetValue("blkA:1/blkB:2/idType");
 
Example 79
The following script sample includes a counter to specify the N:th instance of block blkA:
...
$counter = 1;
$fieldValue=MsgGetValue("blkA:" + $counter +"/blkB:2/idType");
$counter++;
...
 
OpenText StreamServe 5.6 Updated: 2013-03-01