system.kanoa.quality.config.updateCheckField
Description
Updates a check item field value in KanoaQDS.Syntax
updateCheckField(field, value, chkItemId, userId)- str field - Name of column to change, e.g., 'chkItemId', 'chkItemGroupId', 'chkShtId', dataTypeId, 'engUnitId','chkItemName','chkItemTypeId','chkItemTriggerId','measCount','instructions','pickListId','pickListValues','calculation','required','enabled','dynamic','sortOrder','format','attributeId'
- pyObject value - Value to store
- int chkItemId - ID of the check item
- int userId - User ID
- int modifiedRecords - Number of records modified during the update.
Code Examples
# Usage example
field_name = 'chkItemName'
new_value = 'New Check Name'
chk_item_id = 3
user_id = 123
modified_records = system.kanoa.quality.config.updateCheckField(field=field_name, value=new_value, chkItemId=chk_item_id, userId=user_id)
if modified_records is not None:
print(f"Successfully updated {modified_records} records")
else:
print("Update failed.")