system.kanoa.event.updateModeEvent
Description
Updates any of the mode event table fields such as modeId, workOrderId, itemId or comment fields.Syntax
updateModeEvent(field, value, modeSourceId, userId, modeEventId)- field - string colName i.e. 'modeCode', 'workOrderId', 'itemId', 'tStamp', 'comment'
- value - PyObject
- modeSourceId - int
- userId - int
- modeEventId - int
Records modified (int).
Code Example
# Example Usage:
modeSourceId = 789
userId = 5
modeEventId = 123
recordsModified = system.kanoa.event.updateModeEvent('comment', 'we just added a comment', modeSourceId, userId, modeEventId)