Skip to main content

system.kanoa.quality.config.sheets.updateSheet

Requires kanoaQDS license

Description

Updates a check sheet.

Syntax

updateSheet(chkShtInfo, userId)

Parameters:
  • chkShtInfo (dictionary): Dictionary containing check sheet information.
  • userId (int): User ID.

  • Returns:
  • recordsModified (int): Number of records modified.
  • Dictionary

    ParameterTypeRequiredNotes
    chkShtIdintNoID of the check sheet
    chkShtTypeIdintNoID of the check sheet type
    chkShtNamestringNoName of the check sheet
    procNamestringNoProcess name (optional)
    descriptionstringNoDescription of the check sheet (optional)
    instructionsstringNoInstructions for the check sheet (optional)
    enabledboolNoTrue to enable the check sheet
    assetReqdboolNoTrue if asset is required
    itemReqdboolNoTrue if item is required
    autoboolNoTrue if auto
    reTestChkShtIdintNoID of the re-test check sheet (optional)
    reTestMinsintNoMinutes for re-test (optional)
    signOffReqdboolNoTrue if sign-off is required (optional)
    durationSecondsintNoDuration in seconds (optional)
    takenDateChkItemIdintNoID 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)