system.kanoa.lot.updateLotStateField
Description
Updates the value of a specified field for a given lot state ID. If the field is 'enabled', updates the assetLink Table accordingly.Syntax
updateLotStateField(lotStateId, field, value, userId)- lotStateId (int)
- field (string): Name of the column to be updated
- value (pyObject): New value for the specified field
- userId(int)
- Number of records modified (int)
- message (string): None if success
Code Examples
# Example usage
>lotStateId = 1
>field = 'enabled'
>value = True
>userId = 5
>retVal, msg = system.kanoa.lot.updateLotStateField(lotStateId, field, value, userId)
>print(retVal) # Print the number of records modified