hi,
This is expected behavior of the AnyChart widget.
The On Click microflow/nanoflow only ever receives the Event entity.
It cannot access the Data View context object, and selecting the same entity type will always create a new instance, not reuse the existing one.
What is NOT possible
- You cannot access the Data View context (Dashboard) in the chart click microflow
- You cannot pass both Event entity and Dashboard object to the same action
- Switching microflow ↔ nanoflow does not change this behavior
Recommended (and correct) pattern
Do not preload project lists inside the Dashboard NPE.
Instead:
- Use the click event only to extract the status
- Parse the status from the Event JSON (
label, name, or customdata)
- Retrieve projects on demand
- In the click microflow:
- Use the extracted status
- Retrieve Project objects directly from the database
- Open the target page with the retrieved list
This keeps the chart stateless and avoids context issues entirely.
If you must keep a Dashboard object
- Store the Dashboard object in:
- Page parameter (opened page)
- Or Session-level persistable helper entity
- Retrieve it explicitly in the click microflow
- (This is more complex and usually unnecessary.)