Skip to main content

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)

Parameters:
  • field: string colName i.e. 'modeCode', 'workOrderId', 'itemId', 'tStamp', 'comment'
  • value: PyObject
  • modeSourceId: int
  • userId: int
  • modeEventId: int

  • Returns:
  • Records modified (int)
  • Code Examples

    # Example Usage:
    modeSourceId = 789
    userId = 5
    modeEventId = 123
    recordsModified = system.kanoa.event.updateModeEvent('comment', 'we just added a comment', modeSourceId, userId, modeEventId)