Skip to main content

system.kanoa.lot.updateLotField

Description

Updates the passed field value for the given lotId (kanoaOPS)

Syntax

updateLotField(lotId, field, value, userId)

Parameters:
  • lotId (int)
  • field (string): Name of the column to be updated
  • value (pyObject): New value for the specified field
  • userId (int)

  • Returns:
  • Number of records modified (int)
  • message (string): None if success
  • Code Examples

    # Example usage
    >lotId = 1
    >field = 'enabled'
    >value = True
    >userId = 5
    >retVal, msg = system.kanoa.lot.updateLotField(lotId, field, value, userId)
    >print(retVal) # Print the number of records modified