Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 80923

Refresh Chart JS bar chart after updating data in a popup form

$
0
0

I have a Bar Chart based on temporary (non-permanent) entities as per the Chart JS docs. 

Additionally, I created a temporary entity related to each datapoint to enable drilldown functionality.  Each datapoint has many drilldown records. This entity is populated in the chart's datasource microflow. When users click on a datapoint in the chart, detail records show from the drilldown entity. If users click on one of the detail records, they are allowed to edit that record in a popup that shows only the clicked record (this time from a permanent entity so their changes can be saved). At that point, there's the chart and two popup forms displayed.

How do I update the chart and the detailed records popup after the user updates the record in the single record popup form? It seems I need to rerun the datasource microflow for the chart, but how do I trigger that so a user sees the update she just made in the chart that is displayed? 

Edit: The charts are on a tab control, so closing and opening the pages again would not put the user on the same tab again (also, having the entire page refresh in the client would not be ideal).

Thanks,


Viewing all articles
Browse latest Browse all 80923

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>