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

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