So I can get the active data by use of activeEvent = event.sourceEvent.getActiveData()
but I cannot seem to then pull any of the associated property data out of the event object. The documenation states that I should be able to use get(String propertyName)
on this object but when I use activeEvent.get('eventValue')
I get an error stating:
1st arg can't be coerced to com.inductiveautomation.ignition.common.config.Property
If I run activeEvent.getProperties()
however, I do receive back a list of property names of which “eventValue” is one of them. Do I somehow need to use an actual property “type” as an insert into the get function instead of the string name and if so how would I do that?