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