# system.kanoa.event.updateModeEvent(field, value, modeSourceId, userId, modeEventId)

Updates any of the mode event table fields such as modeCode, workOrderId, or itemId fields

---
### Parameters
**field** `String`: i.e. 'modeCode', 'workOrderId', 'itemId', 'tStamp', 'comment'<br />
**value** `pyObject`: Value to update to<br />
**modeSourceId** `Integer`: Whether the source came from erp or mes<br />
**userId** `Integer`: Id of user executing the function<br />
**modeEventId** `Integer`: Id of mode event to change<br />

---
### Returns
**# of records modified** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python
modeSourceId = 1
userId = 5
modeEventId = 123
recordsModified, msg = system.kanoa.event.updateModeEvent('modeCode', 4, modeSourceId, userId, modeEventId)
```
