Skip to main content

system.kanoa.sheet.updateSheetField(chkShtId, field, value, userId)

Updates the passed field value for the given chkShtId.


Parameters

chkShtId Integer: Id of the sheet to update
field String: Valid options chkShtTypeId, chkShtName, procName, fileURL, description, instructions, enabled, assetReqd, itemReqd, auto, reTestChkShtId, reTestMins, signOffReqd, durationSeconds, takenDateChkItemId
value pyObject: Value to update to
userId Integer: Id of user executing the function


Returns

# of records modified Integer
message String None if success


Example

chkShtId=56
field='enabled'
value=True
userId=123
recordsModified, msg = system.kanoa.quality.config.sheets.updateSheetField(chkShtId, field, value, userId)