Skip to main content

system.kanoa.lot.updateLotState(stateInfo, userId)

Update the state info for a given stateId. Updates stateAssetLink table accordingly


Parameters

stateInfo Dictionary

- enabledBoolean
- lotStateIdInteger
- lotStateNameString

userId Integer


Returns

# of records modified Integer
message String None if success


Example

>lotStateInfo = {'lotStateId': 1, 'lotStateName': 'QA Hold', 'enabled': False}
>userId = 5
>retVal, msg = system.kanoa.lot.updateLotState(lotStateInfo, userId)
>print retVal, msg