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

MsgFieldId
Syntax
MsgFieldId(travhandl, num_index);
travhandl
num_index
Description
Retrieves the name of a field (not field value) in the current block.
Returns
str
Example
In this example, the Message contains the blocks blkA, blkB, and blkC structured as shown in the figure below.Click to enlarge
The following Before Frame script in a PageOUT Process returns the name of the second field in the first instance of block blkB in the first instance of block blkA:
$handle=MsgFrameOpen("blkA:1/blkB:1", 0);
$numFields=MsgFieldId($handle, 2);
OpenText StreamServe 5.6.2 Updated: 2018-01-26