Skip to main content

system.kanoa.quality.config.sheets.addSheet

Requires kanoaQDS license

Description

Adds a new check sheet.

Syntax

addSheet(chkShtInfo, userId)

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

  • Returns:
  • chkShtTriggerId (int): ID of the added check sheet.
  • Dictionary

    ParameterTypeRequiredNotes
    chkShtTypeIdintID of the check sheet type
    chkShtNamestringName of the check sheet
    procNamestringProcess name (optional)
    descriptionstringDescription of the check sheet (optional)
    instructionsstringInstructions for the check sheet (optional)
    enabledboolTrue to enable the check sheet
    assetReqdboolTrue if asset is required
    itemReqdboolTrue if item is required
    autoboolTrue if auto
    reTestChkShtIdintID of the re-test check sheet (optional)
    reTestMinsintMinutes for re-test (optional)
    signOffReqdboolTrue if sign-off is required (optional)
    durationSecondsintDuration in seconds (optional)
    takenDateChkItemIdintID 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.config.sheets.addSheet(chkShtInfo=chk_sht_info, userId=123)

    print(chk_sht_trigger_id)