I am trying to disable acknowledging alarms using an associated data parameter I added to my alarms called “Alarm Group”. I am using the isAcknowledgeEnabled extension function on the Alarm Status Table Object. The script that I wrote to prove the concept is shown below. I want to disable acknowledge if any of the selected alarms have an Alarm Group of “Group 1”. Currently with this script, acknowledging is disabled all the time.
ackEnable = 1 for alarmEvent in selectedAlarmEvents: if alarmEvent.get("Alarm Group") != "Group 1": ackEnable = 0 if ackEnable == 1: return True else: return False