event | The event whose field is to be set. |
field_name | The name of the event field to set. |
field_type | The field's type, such as FIELD_TYPE_BOOLEAN (see the table below). |
value | The field's new value. |
Field Type Values for awSetField | |
FIELD_TYPE_BYTE | char * |
FIELD_TYPE_SHORT | short* |
FIELD_TYPE_INT | int * |
FIELD_TYPE_LONG | BrokerLong * |
FIELD_TYPE_FLOAT | float * |
FIELD_TYPE_DOUBLE | double * |
FIELD_TYPE_BOOLEAN | BrokerBoolean * |
FIELD_TYPE_DATE | BrokerDate * |
FIELD_TYPE_CHAR | char * |
FIELD_TYPE_STRING | char * |
FIELD_TYPE_STRUCT | BrokerEvent |
FIELD_TYPE_UNICODE_CHAR | charUC * |
FIELD_TYPE_UNICODE_STRING | charUC * |
Possible BrokerError major codes | Meaning |
AW_ERROR_FIELD_NOT_FOUND | The event is associated with a Broker client and field_name does not exist in the event. |
AW_ERROR_FIELD_TYPE_MISMATCH | The field's type does not match the type of field_type or the field_name incorrectly accesses a type. |
AW_ERROR_INVALID_EVENT | The event is invalid. |
AW_ERROR_INVALID_FIELD_NAME | The field_name is invalid. |
AW_ERROR_INVALID_TYPE | The field_type is FIELD_TYPE_SEQUENCE or is not a supported field type. |
AW_ERROR_NULL_PARAM | The parameter field_name or value is NULL. |