Skip to main content

system.kanoa.quality.sheet.addSheetType

This function requires KanoaQDS module

Description

Adds a new sheet type in KanoaQDS.

Syntax

addSheetType(shtTypeInfo, userId)
  • Parameters
      shtTypeInfo - Dictionary containing sheet type information:
      - 'chkShtTypeName': Name of the sheet type (string).
      - 'parentId': ID of the parent sheet type (int).
      - 'description': Description of the sheet type (string, optional).
      - 'enabled': True to enable the sheet type (bool).
      userId - User ID (int).
  • Returns
      chkShtTypeId - ID of the added sheet type (int).
  • Code Example

    # Usage example
    sht_type_info = {'chkShtTypeName': 'Quality', 'parentId': 1, 'description': None, 'enabled': True}
    user_id = 123
    chk_sht_type_id = system.kanoa.quality.sheet.addSheetType(shtTypeInfo=sht_type_info, userId=user_id)

    print(chk_sht_type_id)