Skip to main content

system.kanoa.sheet.updateSheet(chkShtInfo, userId)

Updates a check sheet. All chkShtInfo keys are required unless otherwise stated.


Parameters

chkShtInfo Dictionary

- assetReqdBoolean
- autoBoolean
- chkShtIdInteger
- chkShtNameString
- chkShtTypeIdInteger
- descriptionString
- durationSecondsInteger
- enabledBoolean
- fileURLStringNot required
- instructionsString
- itemReqdBoolean
- procNameString
- reTestChkShtIdInteger
- reTestMinsInteger
- signOffReqdBoolean
- takenDateChkItemIdInteger

userId Integer: Id of user executing the function


Returns

# of records modified Integer
message String None if success


Example

userId=5
chkShtInfo = {
'chkShtId': 7,
'chkShtTypeId': 2,
'chkShtName': 'some name',
'procName': None,
'description': None,
'instructions': None,
'fileURL': None
'enabled': True,
'assetReqd': False,
'itemReqd': False,
'auto': False,
'reTestChkShtId': None,
'reTestMins': None,
'signOffReqd': None,
'durationSeconds': None,
'takenDateChkItemId': None
}
chkShtId = system.kanoa.quality.sheet.updateSheet(chkShtInfo, userId)