Skip to main content

system.kanoa.quality.sheet.addSheetType

Requires kanoaQDS license

Description

Adds a new sheet type.

Syntax

addSheetType(shtTypeInfo, userId)

Parameters:
  • shtTypeInfo (dictionary): Dictionary containing sheet type information.
  • userId (int): User ID.

  • Returns:
  • chkShtTypeId (int): ID of the added sheet type.
  • Dictionary

    ParameterTypeRequiredNotes
    chkShtTypeNamestringName of the sheet type
    parentIdintID of the parent sheet type
    descriptionstringDescription of the sheet type (optional)
    enabledboolTrue to enable the sheet type

    Code Examples

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