I’ve tried to use system.alarm.queryJournal to retrieve associated alarm data (that I’ve checked is in the database) and also the label of the alarm (dynamically built, present in the db as well).
However it seems that the alarms returned by this call do not contain the associated data and/or label, that’s always resolved as name of the alarm.
For the moment I’m using a custom named query to retrieve all the details and it works.
My script is a gateway script, on Ignition 8.1.4 (b2021040109).
I’ve seen the following topics and tried almost everything (also inspecting the AlarmQueryResult object):
Alarm Journal Table: Label field displays incorrectly
But I don’t think that the problem is related to “Static data”, since the values I’d expect are in the database and label is dynamic, as well as properties.
How to pull Associated Alarm Data from the alarm event list generated with system.alarm.queryStatus?
But the question here is for system.alarm.queryStatus. I’m also using what found in the next point (WrapperAlarmEvent), since my version is 8.1.4 and still does not use PyAlarmEvent (introduced in 8.1.11).
BasicAlarmEvent to PyAlarmEvent
I’ve tried to wrap the event to extract all the active/ack/etc… data.
Accessing Alarm Associated Data in scripting
Still refers to system.alarm.queryStatus.
Has this been fixed in following versions?