Skip to main content

system.kanoa.quality.config.sheets.addItemClasses

This function requires KanoaQDS module

Description

Adds links between a check sheet and a list of item classes in KanoaQDS.

Syntax

addItemClasses(chkShtId, itemClassIdList, userId)
  • Parameters
      chkShtId - ID of the check sheet (int).
      itemClassIdList - List of item class IDs (list of int).
      userId - User ID (int).
  • Returns
      # of records created - Number of records created (int).
  • Code Example

    # Usage example
    chk_sht_id = 56
    item_class_id_list = [1, 2, 3]
    user_id = 123
    records_created = system.kanoa.quality.config.sheets.addItemClasses(chkShtId=chk_sht_id, itemClassIdList=item_class_id_list, userId=user_id)

    print(records_created)