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 'Coming Due', 'Due', 'Overdue', 'In Progress', 'Submitted', 'Approved', 'Missed', 'Canceled', 'Disabled', 'Rejected'
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)