Skip to main content
Jan 28, 2022 10:58 AM UTC
Solved

datachange event of infotable property in thingtemplate

AP_9587236_0-1643367292855.png

I have a property in thingtemplate of infotable type. This thingtemplate is attached to remote thing. If one row gets added, i have to run a service. So i tried datachange event but the subscription doesnt trigerred. How to execute this.

PaiChungAnswer
Jan 28, 2022 8:56 PM UTC

Set your DataChange type to Always

For infotables, the Data Change / Value will only trigger when the number of rows changes.

Set it Always means the Data Change will fire each time the field is updated, which is what you'll need.

IF the agent is writing the same values at times, you'll need to do some validation if you don't want to use those values.

1 reply

PaiChungAnswer
Jan 28, 2022 8:56 PM UTC

Set your DataChange type to Always

For infotables, the Data Change / Value will only trigger when the number of rows changes.

Set it Always means the Data Change will fire each time the field is updated, which is what you'll need.

IF the agent is writing the same values at times, you'll need to do some validation if you don't want to use those values.