How to access Data View context object in AnyChart widget On Click event?

0
I am building an actionable dashboard in Mendix using the AnyChart widget (Plotly-based). The dashboard shows a pie chart with project statuses: Completed WIP Not Started On Hold Each slice represents the count of projects for that status. When a user clicks on a slice (e.g., "Completed"), I want to trigger a microflow that retrieves projects for that status and shows them in a new page.   Current Setup:   I have a non-persistent entity Dashboard that holds all preloaded project lists (status-wise). The AnyChart widget is placed inside a Data View bound to this Dashboard object. The chart data is generated dynamically from this Dashboard object. In the widget’s Events tab, I configured: Event entity: TaskManager.AnyChart (to store click event JSON) Event data attribute: stores raw Plotly event data On click microflow: ACT_ProjectStatusDistribution Problem: In the On Click microflow, Mendix only passes the Event entity object (with JSON data).Even if I select the same entity type (Dashboard) as the Event entity, Mendix creates a new instance instead of using the existing context object.So, I cannot access the original Dashboard object that contains all the preloaded project lists.   What I Need: When a user clicks on a slice, I need: The clicked status (from the event data). The existing Dashboard object (context of the Data View). Based on these, I will filter projects from the Dashboard and show them.   Questions: Is there a way to access the Data View context object in the On Click microflow or nanoflow? Can I pass both the Event entity and the Dashboard object to the microflow? If not, what is the recommended approach to achieve this? Should I use a nanoflow instead of a microflow? Or create a helper object to combine event data and context?    
asked
0 answers