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

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