Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I want my time-series char widget to display real-time data in the Mashup as soon as the data field property's DataChangeEvent is triggered. I've tried with the following two approaches, but none of them work.
1. Using the 'Refresh' widget with interval set to 60 seconds, and
2. Using the GetProperties service, with 'Automatically update values' flag checked, and the 'ServiceInvokeComplete' event bind to 'QueryPropertyHistory' service (which has its return data bound to the chart widget).
I've two remotely bound properties in my Remote Thing, one String type and the other Number type, both logged, and an associated Value Stream. The Number type property has 'DataChangeEvent' set as 'Always' and the String type property as 'Value'. The Number type property gets updated every 60 seconds. Upon executing the 'QueryPropertyHistory' service manually in the Composer UI, I find that the returned table does not contain rows spaced 60 seconds apart. Many of the rows are only milliseconds apart, while some rows are few minutes apart. I also checked the 'Application Log' to see the DataChangeEvent firing logs, and they aren't triggered every 60 seconds either.
Hi @ravi2
Give the event of 'refresh' in 'auto refresh widget' to 'get properties' service and if any other service so that, whenever the mashup is refreshed it gets the updated property values.
Hope it helps.
It maybe happening various things.
Hi @ravi2.
If one of the previous responses answered your question, please mark the appropriate one as the Accepted solution for the benefit of others with the same question.
Regards.
--Sharon