This procedure adds String field into response.
Parameter | Type | Description | |
---|---|---|---|
element | 30A VARYING, VARSIZE | Mandatory | Name of element |
fieldName | 30A VARYING, VARSIZE | Mandatory | Field name |
stringValue | 1024A VARYING, VARSIZE | Mandatory | String value |
escape | N | Optional | *ON or *OFF (Default = *ON) Indicates if value must be “escaped” means add ‘' escape character |
The procedure returns pointer of field. If procedure can’t add field, then returns null.
Examples:
respAddStringField('data': 'warehouse': SRSROM);
respAddStringField('data': 'warehouse': SRSROM: *OFF);