Data-view is not updating when entity is updated in Mendix

Refresh

4 weeks ago

Views

4 time

0

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.

enter image description here

Here is my page LatestReading that show latest readings. It contains three data views.

enter image description here

This page is not called directly as it expect a variable latestReading hence a micro-flow named showLatestReadingPage is executed that fetches or create latestReading and pass it to the LatestReading page and display that page.

Here is that micro-flow.

enter image description here

getOrCreateLatestReading is a micro-flow that returns us the a latestReading and if it is available or create a new latestReading if it is not already created and then returns it.

Here is that micro-flow.

enter image description here

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

enter image description here

These are the properties of test widget that is inside data-view. Its name is temperatureText. It shows value of temperature in the TemperatureDataView.

enter image description here

And this is the caption of temperatureText text widget:

enter image description here

0 answers