Skip to main content
17-Peridot
January 28, 2022
Solved

datachange event of infotable property in thingtemplate

  • January 28, 2022
  • 1 reply
  • 955 views

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.

Best answer by PaiChung

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

PaiChung22-Sapphire IAnswer
22-Sapphire I
January 28, 2022

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.