Skip to main content
Jun 23, 2022 3:08 AM UTC
Question

How to write a subscription to trigger a service which will execute and updates the DataTable

I wrote a service to update all the values of a thing to DataTable.

 

But i need to do the same when automatically, when the new data updates in a thing.

 

Pls support in writing a sub'n which triggers the service and updates the DataTable whenever the particular property updates in a thing

2 replies

SathyaAuthor
Jun 23, 2022 3:22 AM UTC

Thanks all, got it

Aug 7, 2022 12:54 PM UTC

Hi,

 

Use datachange event of property in subscription. Within subscription call the service to update the value to datatable.

 

Hope this helps!!