system.kanoa.quality.sheet.addSheet
Description
Adds a new check sheet.Syntax
addSheet(chkShtInfo, userId)Parameters:
Returns:
Dictionary
| Parameter | Type | Required | Notes |
|---|---|---|---|
| chkShtTypeId | int | ID of the check sheet type | |
| chkShtName | string | Name of the check sheet | |
| procName | string | Process name (optional) | |
| description | string | Description of the check sheet (optional) | |
| instructions | string | Instructions for the check sheet (optional) | |
| enabled | bool | True to enable the check sheet | |
| assetReqd | bool | True if asset is required | |
| itemReqd | bool | True if item is required | |
| auto | bool | True if auto | |
| reTestChkShtId | int | ID of the re-test check sheet (optional) | |
| reTestMins | int | Minutes for re-test (optional) | |
| signOffReqd | bool | True if sign-off is required (optional) | |
| durationSeconds | int | Duration in seconds (optional) | |
| takenDateChkItemId | int | ID of the taken date check item (optional) |
Code Examples
# 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.sheet.addSheet(chkShtInfo=chk_sht_info, userId=123)
print(chk_sht_trigger_id)