Perspective alarm jourmal, problem with associated data

Hello

I am having an issue with getting associated data from an alarm

The data in the alarm is dynamic and connected to a parameter of the UDT.

However:

  • the associated data does not appear in the selected data prop of the alarm journal

  • when I used scripting to get the whole datapackage from the alarm the associated data is included, however the fieldname does not appear as ViewCode2, but as com.inductiveautomation.ignition.common.alarming.config.AssociatedData@474e0e12

how do I solve this ?

1 Like

I use the following script to get the associated data

#Get Alarms
alarms=system.alarm.queryStatus(state=["ActiveUnacked","ActiveAcked"])

#Loop through alarms
for alarm in alarms:
	print str(alarm.get('#InsertHereTheNameOfAssociatedData'))

I also not use the alarm status/journal object but a simple table. I found it easier to personnalize.

Hope this helps