Skip to main content

system.kanoa.quality.config.updateCheck

This function requires KanoaQDS module

Description

Updates a check item in KanoaQDS.

Syntax

updateCheck(chkItemInfo, userId)
  • Parameters
      dict chkItemInfo - Dictionary, e.g., {'chkItemId': 3, 'chkItemGroupId': 1,'chkShtId': 2,'dataTypeId':3,'engUnitId':None,'chkItemName': 'Check 1','chkItemTypeId':1,'chkItemTriggerId':4,'measCount': 1,'instructions': None,'pickListId': 4,'pickListValues': None,'calculation': None,'required': True,'enabled': True, 'dynamic': False,'sortOrder':0,'format': '#,##0.#', 'attributeId': None}
      int userId - User ID
  • Returns
      int modifiedRecords - Number of records modified during the update.
  • Code Examples

    # Usage example
    chk_item_info = {'chkItemId': 3, 'chkItemGroupId': 1,'chkShtId': 2,'dataTypeId':3,'engUnitId':None,'chkItemName': 'Check 1','chkItemTypeId':1,'chkItemTriggerId':4,'measCount': 1,'instructions': None,'pickListId': 4,'pickListValues': None,'calculation': None,'required': True,'enabled': True, 'dynamic': False,'sortOrder':0,'format': '#,##0.#', 'attributeId': None}
    modified_records = system.kanoa.quality.config.updateCheck(chkItemInfo=chk_item_info, userId=123)

    if modified_records is not None:
    print(f"Successfully updated {modified_records} records")
    else:
    print("Update failed.")