Skip to main content

system.kanoa.quality.config.updateGroupField

This function requires KanoaQDS module

Description

Updates a check item group field value in KanoaQDS.

Syntax

updateGroupField(field, value, chkItemGroupId, userId)
  • Parameters
      str field - Name of the column to change, e.g., 'chkItemId', 'chkItemGroupName', 'sortOrder'
      pyObject value - Value to store
      int chkItemGroupId - ID of the check item group
      int userId - User ID
  • Returns
      int modified_records_count - Number of records modified.
  • Code Examples

    # Usage example
    field_to_update = 'chkItemGroupName'
    new_value = 'Updated Group Name'
    chk_item_group_id = 3
    user_id = 123
    modified_records_count = system.kanoa.quality.config.updateGroupField(field=field_to_update, value=new_value, chkItemGroupId=chk_item_group_id, userId=user_id)

    print(f"Modified {modified_records_count} records.")