Tag Change Event Properties

I added a Gateway Tag Change Event script. I printed the event object and saw:

Event: ‘com.inductiveautomation.ignition.common.util.FilteredTagChangeListener$FilteredTagChangeEvent@55508c34[currentValue=[0, Bad Quality, Tue Apr 12 12:24:34 CST 2022],previousValue=,changes=[ValueChange, QualityChange, TimestampChange],tagPath=Test/Mem_Tag,prop=Value,indexes=]’

It should be easy to retrieve current and previous values and what type of changes it is, but for the life of me, I can’t figure out how.

Any advice greatly appreciated…

https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts#GatewayEventScripts-TagChangeScripts

The event object has getCurrentValue() and getPreviousValue() methods on it.

I think we’re using 7.9 and that didn’t show up at that place in the documentation. Version difference aside, it worked like a charm!!! Many thanks. :slight_smile:

Cheers,
Tanner