This procedure gets first child node if exist.
Parameter | Type | Description | |
---|---|---|---|
baseNode | 1024A VARYING, VARSIZE | Mandatory | This parameter is used to pass base node. Currently following base nodes are supproted: “IptorAPI”, “method”, “params”, “messages”, “control”, “id” |
node | 1024A VARYING, VARSIZE | Optional | Node name. This parameter is optional. If the structure is more complex then nodes must be divided by colon “:” |
exists | N | Optional | Returns *ON if child node exists, *OFF if child node does not exit |
The procedure returns first child node name (1024A). If the child node does not exist then procedure returns *BLANKS.
Examples:
xxNodeName = reqGetFirstChildNode('params');
xxNodeName = reqGetFirstChildNode('params': 'data');
xxNodeName = reqGetFirstChildNode('params': 'data:orderInfo');
xxNodeName = reqGetFirstChildNode('params': 'data': *IN20);