system.kanoa.quality.config.addChkShtTrigger
Description
Adds a check sheet trigger in KanoaQDS.Syntax
addChkShtTrigger(triggerInfo, userId)- dict triggerInfo - Dictionary with trigger details, e.g., {'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 chkShtTriggerId - ID of the added check sheet trigger.
Code Examples
# Usage example
trigger_info = {'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 = 123
added_chk_sht_trigger_id = system.kanoa.quality.config.addChkShtTrigger(triggerInfo=trigger_info, userId=user_id)
print(f"Added check sheet trigger with ID: {added_chk_sht_trigger_id}")