Skip to main content

system.kanoa.quality.config.sheets.updateSheet

This function requires KanoaQDS module

Description

Updates a check sheet in KanoaQDS.

Syntax

updateSheet(chkShtInfo, userId)
  • Parameters
      chkShtInfo - Dictionary containing check sheet information:
      - 'chkShtId': ID of the check sheet (int).
      - 'chkShtTypeId': ID of the check sheet type (int).
      - 'chkShtName': Name of the check sheet (string).
      - 'procName': Process name (string, optional).
      - 'description': Description of the check sheet (string, optional).
      - 'instructions': Instructions for the check sheet (string, optional).
      - 'enabled': True to enable the check sheet (bool).
      - 'assetReqd': True if asset is required (bool).
      - 'itemReqd': True if item is required (bool).
      - 'auto': True if auto (bool).
      - 'reTestChkShtId': ID of the re-test check sheet (int, optional).
      - 'reTestMins': Minutes for re-test (int, optional).
      - 'signOffReqd': True if sign-off is required (bool, optional).
      - 'durationSeconds': Duration in seconds (int, optional).
      - 'takenDateChkItemId': ID of the taken date check item (int, optional).
      userId - User ID (int).
  • Returns
      # of records modified - Number of records modified (int).
  • Code Example

    # 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)