Dashboard Questions

0
I am trying to create a Dashboard that shows counts from various entity’s in the system. What is the best way to get the data for display? Do I need to store everything I want to display in an entity, or can I create the data dynamically. Somehow I thought Mendix had Dashboard widgets that would do this type of things.   Thanks  
asked
2 answers
0

I know of page templates for dashboards. A common pattern is to use non persistent entities to show the data on the page and calculate their values dynamically in a microflow. It's a design choice really, so if you want to maintain and regularly update a persistent entity in your database, I guess that's fine also.

answered
0

In the past, I would use calculated attributes for that purpose, but I’ve now come to the conclusion that calculated attributes should be limited to calculating data available exclusively on their own object (to prevent database calls and dangerous event chains). So what I do now is that I update the “parent” element with an After Commit event whenever the “child” does something that is supposed to be counted in the parent’s static fields and I use these fields to do the KPI calculations in parent’s calculated fields.  

answered