system.kanoa.quality.config.updateChkShtTrigger
Description
Updates a check sheet trigger in KanoaQDS.Syntax
updateChkShtTrigger(triggerInfo, userId)- dict triggerInfo - Dictionary with trigger details, e.g., {'chkShtTriggerId': 67,'chkShtId': 4,'triggerTypeId':2, 'modeId': None, 'shiftNameId': None, 'intervalMins': 10, 'delayMins': 5, 'productionCount': None, 'comingDueMins': 5, 'overDueMins': 5, 'graceMins': 10, 'enabled': True, 'modifier': None}
- int userId - User ID.
- int recordsModified - Number of records modified.
Code Examples
# Usage example
trigger_info_update = {'chkShtTriggerId': 67,'chkShtId': 4,'triggerTypeId':2, 'modeId': None, 'shiftNameId': None, 'intervalMins': 10, 'delayMins': 5, 'productionCount': None, 'comingDueMins': 5, 'overDueMins': 5, 'graceMins': 10, 'enabled': True, 'modifier': None}
user_id_update = 123
modified_records_update = system.kanoa.quality.config.updateChkShtTrigger(triggerInfo=trigger_info_update, userId=user_id_update)
print(f"Updated {modified_records_update} records.")