system.kanoa.quality.config.addAttributeLink
Description
Links the attributeId to the chkItemId in KanoaQDS.Syntax
addAttributeLink(chkItemId, attributeId, userId)- int chkItemId - ID of the check item.
- int attributeId - ID of the attribute to be linked.
- int userId - User ID
- 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}")