This procedure adds message to response.
Parameter | Type | Description | |
---|---|---|---|
msgType | 10A | Mandatory | Type of message |
messageId | 30A VARYING, VARSIZE | Mandatory | Message Id |
messageKey | 30A VARYING, VARSIZE | Mandatory | Message key. For example field name or any other element which connects message with application |
messageText1 | 1024A VARYING, VARSIZE | Mandatory | Message text |
messageText2 | 1024A VARYING, VARSIZE | Optional | Additional message text |
Following message types are supported:
Type | Description |
---|---|
ERROR | Error message |
WARNING | Warning message. This message needs to be confirmed by user |
INFO | Informational message. This message do not need to be confirmed nu user |
Examples:
respAddMessage('ERROR': 'FA1123': 'warehouse': 'Warehouse XXX does not exist.');
respAddMessage('WARNING': 'FA1124': 'price': 'Confirm price 1234.');
respAddMessage('INFO': 'FA1125': '': 'Order was creatred.');
respAddMessage('ERROR': 'FA1123': 'warehouse': 'Warehouse XXX does not exist.': 'Please enter other one');