Skip to main content

system.kanoa.quality.event.updateChkShtStatus(chkShtEventId, status, userId)

Updates a check sheet event status


Parameters

chkShtEventId Integer: Id of check sheet event to update
status String: Valid options are Overdue, Submitted, Approved, Missed, Canceled, Disabled, Coming Due, Rejected, Due
userId Integer:Id of the user executing the function


Returns

# of records modified Integer


Example

chkShtEventId = 123
chkShtStates = system.kanoa.utilities.convertDatasetToDict(system.kanoa.quality.sheet.getStates({'enabled': True}), 'chkShtStateName', 'chkShtStateId')
chkShtStateId = chkShtStates['Approved']
userId = 456
retVal = system.kanoa.quality.event.updateChkShtStatus(chkShtEventId, chkShtStateId, userId=user_id)