Ackowledge last alarm when using AE instead of DA

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
Mattias
Posts: 5
Joined: Fri Mar 06, 2020 7:52 am

Ackowledge last alarm when using AE instead of DA

Post 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?

Mattias
Posts: 5
Joined: Fri Mar 06, 2020 7:52 am

Re: Ackowledge last alarm when using AE instead of DA

Post 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);

Post Reply