Skip to main content

system.kanoa.lot.updateLotStateField(lotStateId, field, value, userId)

Updates the passed field value for the given lotStateId. If the field is enabled, we will update the assetLink Table


Parameters

lotStateId Integer
field String: Name of column
value pyObject: Datatype of referenced field
userId Integer


Returns

# of records modified Integer
message String None if success


Example

lotStateId = 1
field = 'enabled'
value = True
userId = 5
retVal, msg = system.kanoa.lot.updateLotStateField(lotStateId, field, value, userId)
print retVal, msg