reqGetValue()

This procedure returns parameter value as string.

ParameterTypeDescription
baseNode1024A VARYING, VARSIZEMandatoryThis parameter is used to pass base node. Currently following base nodes are supproted: “IptorAPI”, “method”, “params”, “messages”, “control”, “id”
node1024A VARYING, VARSIZEOptional, can be omitedNode name. This parameter is optional. If the structure is more complex then nodes must be divided by colon “:”
valueType1AOptional, can be omitedReturns type of value (see types of value)
existsNOptional, can be omitedReturns *ON if value exists, *OFF if value does not exit
valuePtrPOINTEROptional, can be omitedReturns pointer in memory where value resides
valueLength10U 0Optional, can be omitedReturns length of value in bytes
unescapeNOptional*ON or *OFF (Default = *ON) Indicates if value must be “unescaped” means removed ‘' escape character

The procedure returns value as string even if the value is numeric (1024A). It is up to programmer to convert string to numeric later.

Types of value:

typeDescription
OObject
CCharacter
NNumeric
Ttrue
Ffalse
0null
Eerror
BLANKValue does not exist

Examples:

X007SROM = reqGetValue('params': 'warehouse');

X007SROM = reqGetValue('params': 'warehouse': xxvalueType);

X007SROM = reqGetValue('params': 'warehouse': xxvalueType: xxExist);

XText = reqGetValue('params': 'myText': *omit: *omit: *omit: *omit: *OFF);

//When numeric value is retrieved 
X007ORNO = %DEC(reqGetValue('params': 'orderNumber'): 12: 0);