Acknowledged the Individual Alarms in Ignition (V7.6.4)

Hello,

By using the script belowall alarms are getting acknowledge at a time. we need to ack individual alarm.

[color=#0000BF]#get the list of unacknowledged alarms
results = system.alarm.queryStatus(priority=[‘1’,‘2’], state=[“ClearUnacked”, “ActiveUnacked”])
#walk through dataset, collecting EventIds
uuid = ‘’
i = 0
for row in results:
uuid = [str(data.getValueAt(i,‘EventId’))]

#acknowledge alarms
system.alarm.acknowledge(uuid, "notes")
i+=1[/color]

Can anybody suggest requried modification in above script.
I belive the issue seems to be with the addressing the TAGPATH for the tags from the UDT.

You need to filter by the path also. I don’t have 7.6.x installed but something like this should work:

#get the list of unacknowledged alarms
results = system.alarm.queryStatus(priority=['1','2'], state=["ClearUnacked", "ActiveUnacked"], path=["MYTAG"])
#walk through dataset, collecting EventIds
uuid = ''
i = 0
for row in results:
	uuid = [str(data.getValueAt(i,'EventId'))]

	#acknowledge alarms
	system.alarm.acknowledge(uuid, "notes")
	i+=1