Skip to main content

system.kanoa.quality.config.updateGroup

This function requires KanoaQDS module

Description

Updates a check item group in KanoaQDS.

Syntax

updateGroup(grpInfo, userId)
  • Parameters
      dict grpInfo - Dictionary, e.g., {'chkItemGroupId': 3, 'chkShtId': 1,'chkItemGroupName': 'Some name','sortOrder':3}
      int userId - User ID
  • Returns
      int chkItemGroupId - ID of the updated check item group.
  • Code Examples

    # Usage example
    group_info = {'chkItemGroupId': 3, 'chkShtId': 1, 'chkItemGroupName': 'Updated Group', 'sortOrder': 5}
    user_id = 123
    updated_chk_item_group_id = system.kanoa.quality.config.updateGroup(grpInfo=group_info, userId=user_id)

    if updated_chk_item_group_id:
    print(f"Successfully updated check item group. ID: {updated_chk_item_group_id}")
    else:
    print("Update failed.")