This procedure retrieves 3-State value for given node string.
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 “:” |
patern | 10i 0 VARSIZE | Optional | Conversion pattern (see patterns) |
valueType | 1A | Optional | Returns type of value (see types of value) |
exists | N | Optional | Returns *ON if value exists, *OFF if value does not exit |
Procedure returns character vale depend on pattern (see patterns). In case of error the returned value is ‘ERROR’
Patterns:
pattern | Desctiption |
---|---|
#true_false_null | converts JSON true/false/null -> ’true’/‘false’/’null’ return string |
#Y_N_BLANK | converts JSON true/false/null -> ‘Y’/‘N’/BLANK return string |
#1_0_BLANK | converts JSON true/false/null -> ‘1’/‘0’/BLANK return string |
Types of value:
type | Description |
---|---|
O | Object |
C | Character |
N | Numeric |
T | true |
F | false |
0 | null |
E | error |
BLANK | Value does not exist |
Examples:
Xx3State = reqGet3StateValue('params': 'freeOfCharge');
Xx3State = reqGet3StateValue('params': 'freeOfCharge': #Y_N_BLANK);
Xx3State = reqGetBooleanValue('params':'freeOfCharge':#true_false_null);