Question is: How to show data in data-view in such a way that if entity is updated some how dataview is updated too.
This is my Entity named latestReading
.
Here is my page LatestReading
that show latest readings. It contains three data views.
This page is not called directly, as it expect a object latestReading
. Hence a micro-flow named showLatestReadingPage
is executed that fetches or create latestReading
object and pass it to the LatestReading
page and display LatestReading
page.
Here is that micro-flow.
getOrCreateLatestReading
is a micro-flow that returns us the a latestReading
object if it is available or create a new latestReading
object if it is not already created and then returns it.
Here is that micro-flow.
These are the properties of first of the three data-views in LatestReading
page as shown diagram of LatestReading
Page above. Name of this DataView is TemperatureDataView
These are the properties of text widget that is inside TemperatureDataView
data-view. Its name is temperatureText
. It shows value of temperature in the TemperatureDataView
.
And this is the caption of temperatureText
text widget:
Problem is when another micro-flow updates the value of latestReading
the text widget is not updated. I need to reload it by clicking on navigation link of LatestReading
page again.
I need my text widget in data view to keep updating value of latestReading
when it is updated my some other micro-flow