system.kanoa.quality.sheet.updateSheetField
Description
Updates a single field on an existing check sheet.Syntax
updateSheetField(chkShtId, field, value, userId)Parameters:
Returns:
Parameters
Parameter | Type | Required | Notes |
---|---|---|---|
chkShtId | int | Yes | ID of the check sheet to update |
field | string | Yes | Must be a valid column in qds.chkSht |
value | pyObject | Yes | Bound as a query parameter; type should match the target column |
userId | int | Yes | Recorded in changedBy ; changedDate set to current time |
Code Examples
# Update the 'enabled' flag to True
records_modified, msg = system.kanoa.quality.sheet.updateSheetField(
chkShtId=56,
field='enabled',
value=True,
userId=123
)
print(records_modified, msg) # e.g., 1, None
# Update the 'description'
records_modified, msg = system.kanoa.quality.sheet.updateSheetField(
chkShtId=56,
field='description',
value='Periodic safety checklist for Line A',
userId=123
)
print(records_modified, msg)