I'm currently attempting to extract the associated properties and values of active alarm objects without having to use regex.
The following code returns a list of objects containing the active properties.
[code]>>auAlarmList = system.alarm.queryStatus(status=["ActiveUnacked"])
for x in auAlarmList:
adList = x.activeData
print adList
{label=My label text, name=Alarm, eventValue=false, myAssociatedProperty=myPropertyValue}
[/code]
When I add the following I successfully get a list of lists with property names:
>>print adList.properties
[label, name, eventValue, myAssociatedProperty]
However, when I add the following in an attempt to retrieve the value of the previously named properties, I get this:
>>print adList.values
[com.inductiveautomation.ignition.common.config.PropertyValue@4222e0f5, com.inductiveautomation.ignition.common.config.PropertyValue@17c18633, ...]
What is returned here exatcly? I assume it's something other than the associated values. Maybe the value of the actual property.