Page 1 of 1

Ackowledge last alarm when using AE instead of DA

Posted: Tue Aug 04, 2020 6:49 am
by Mattias
I have found answere here in the forum for acknowledge last alarm when using DA. But how can I acknowledge only the last alarm when using AE?
The function to acknowledge selected alarms from AlarmViewer exists so there have to be a script command which can acknowledge a specific alarm even when using AE.

E.g. Globals.AlarmServer.Acknowledge(); Will Acknowledge all alarms, is there a corresponding function for ackowledge a specific alarm?

Re: Ackowledge last alarm when using AE instead of DA

Posted: Wed Aug 05, 2020 4:27 am
by Mattias
I resolved it myself:
It's possible to do like this:
string newString = ListView.Items[IndexString].SubItems[6].Text;
Guid newGuid = new Guid(newString);
IAlarmServer TestServ = Globals.AlarmServer;
TestServ.Acknowledge(newGuid);