reqGetValueType()

This procedure returns parameter value type.

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, VARSIZEOptionalNode name. This parameter is optional. If the structure is more complex then nodes must be divided by colon “:”

The procedure returns value type (1A). See table bellow.

Types of value:

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

Examples:

xxType = reqGetValueType('params': 'orderNumber');

if reqGetValueType('params' :'orderNumber') = 'N';
  xxNumValue = %DEC(reqGetValue('params' :'orderNumber') :5 :0);
else;
  xxNumValue = 0;
endif;