system.kanoa.quality.config.addGroup
Description
Adds a new check item group to the check sheet in KanoaQDS if it doesn't already exist.Syntax
addGroup(grpInfo, userId)- dict grpInfo - Dictionary, e.g., {'chkShtId': 1,'chkItemGroupName': 'Some name','sortOrder':3}
- int userId - User ID
- int chkItemGroupId - ID of the newly added check item group.
Code Examples
# Usage example
group_info = {'chkShtId': 1, 'chkItemGroupName': 'Group 1', 'sortOrder': 3}
user_id = 123
chk_item_group_id = system.kanoa.quality.config.addGroup(grpInfo=group_info, userId=user_id)
if chk_item_group_id:
print(f"Successfully added check item group. New ID: {chk_item_group_id}")
else:
print("Addition failed.")