Skip to main content

system.kanoa.quality.config.updateCheck

Requires kanoaQDS license

Description

Updates a check item.

Syntax

updateCheck(chkItemInfo, userId)

Parameters:
  • chkItemInfo (dict): Dictionary
  • userId (int): User ID

  • Returns:
  • modifiedRecords (int): Number of records modified during the update.
  • Dictionary

    ParameterTypeRequiredNotes
    chkItemIdintNoe.g. 3
    chkItemGroupIdintNoe.g. 1
    chkShtIdintNoe.g. 2
    dataTypeIdintNoe.g. 3
    engUnitIdintNoe.g. None
    chkItemNamestrNoe.g. 'Check 1'
    chkItemTypeIdintNoe.g. 1
    chkItemTriggerIdintNoe.g. 4
    measCountintNoe.g. 1
    instructionsstrNoe.g. None
    pickListIdintNoe.g. 4
    pickListValuesstrNoe.g. None
    calculationstrNoe.g. None
    requiredboolNoe.g. True
    enabledboolNoe.g. True
    dynamicboolNoe.g. False
    sortOrderintNoe.g. 0
    formatstrNoe.g. '#,##0.#'
    attributeIdintNoe.g. None

    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.")