How to pass data between multiple widgets using microflow/nanoflow onClick or onChange event of widget in Mendix App?

0
We want to pass data from one widget to another when different events (onClick, onChange, etc.) of widgets are fired, using microflow or nanoflow in Mendix App.    Can anyone suggest how to achieve this in Mendix App?
asked
1 answers
1

The best way would be to let them share a context entity used by both widgets. It does need proper timing though and good analysis of the use case as it can become tricky with refreshes outside of the widget etc. Another option would be, if there are very clear points of interaction, to let one widget expose an event via JavaScript and let that other widget listen to that event. You would then probably still need a context entity for that event, but this should work as well.

 

 

answered