Skip to main content

system.kanoa.quality.config.addAttributeLink

This function requires KanoaQDS module

Description

Links the attributeId to the chkItemId in KanoaQDS.

Syntax

addAttributeLink(chkItemId, attributeId, userId)
  • Parameters
      int chkItemId - ID of the check item.
      int attributeId - ID of the attribute to be linked.
      int userId - User ID
  • Returns
      int chkItemAttrLinkId - ID of the link created.
  • Code Examples

    # Usage example
    chk_item_id = 1
    attribute_id = 2
    user_id = 123
    link_id = system.kanoa.quality.config.addAttributeLink(chkItemId=chk_item_id, attributeId=attribute_id, userId=user_id)

    if link_id is not None:
    print(f"Successfully linked attribute with ID {attribute_id} to check item with ID {chk_item_id}")