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'
value pyObject: Value to update to
modeSourceId Integer: Whether the source came from erp or mes
userId Integer: Id of user executing the function
modeEventId Integer: Id of mode event to change
Returns
# of records modified Integer
message String None if success
Example
modeSourceId = 1
userId = 5
modeEventId = 123
recordsModified, msg = system.kanoa.event.updateModeEvent('modeCode', 4, modeSourceId, userId, modeEventId)