system.kanoa.quality.config.sheets.addSheet
Description
Adds a new check sheet in KanoaQDS.Syntax
addSheet(chkShtInfo, userId)- chkShtInfo - Dictionary containing check sheet information:
- - 'chkShtTypeId': ID of the check sheet type (int).
- - 'chkShtName': Name of the check sheet (string).
- - 'procName': Process name (string, optional).
- - 'description': Description of the check sheet (string, optional).
- - 'instructions': Instructions for the check sheet (string, optional).
- - 'enabled': True to enable the check sheet (bool).
- - 'assetReqd': True if asset is required (bool).
- - 'itemReqd': True if item is required (bool).
- - 'auto': True if auto (bool).
- - 'reTestChkShtId': ID of the re-test check sheet (int, optional).
- - 'reTestMins': Minutes for re-test (int, optional).
- - 'signOffReqd': True if sign-off is required (bool, optional).
- - 'durationSeconds': Duration in seconds (int, optional).
- - 'takenDateChkItemId': ID of the taken date check item (int, optional).
- userId - User ID (int).
- chkShtTriggerId - ID of the added check sheet (int).
Code Example
# Usage example
chk_sht_info = {'chkShtTypeId': 2, 'chkShtName': 'some name', 'procName': None, 'description': None, 'instructions': None, 'enabled': True, 'assetReqd': False, 'itemReqd': False, 'auto': False, 'reTestChkShtId': None, 'reTestMins': None, 'signOffReqd': None, 'durationSeconds': None, 'takenDateChkItemId': None}
chk_sht_trigger_id = system.kanoa.quality.config.sheets.addSheet(chkShtInfo=chk_sht_info, userId=123)
print(chk_sht_trigger_id)