Skip to main content

system.kanoa.event.updateLotStateReasonField(lotStateReasonId, field, value, userId)

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


Parameters

lotStateReasonId 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

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