This procedure adds Numeric field as string value into response. The big numeric (more than 15 digits) must be passed as string via JSON.
Parameter | Type | Description | |
---|---|---|---|
element | 30A VARYING, VARSIZE | Mandatory | Name of element |
fieldName | 30A VARYING, VARSIZE | Mandatory | Field name |
value | 30P 9 | Mandatory | Numeric value |
The procedure returns pointer of field. If procedure can’t add field, then returns null.
NOTE: Numeric values must be rounded to reqired number of decimals prior to add value to response. `
Examples:
respAddNumericField('data': 'quantity': 123456789012345678);
//This will put into response 'quantity':'123456789012345678'