How to declare a global variable in mendix? - Mendix Forum

How to declare a global variable in mendix?

1

I want to declare a variable whose value can be displayed anywhere in app (on any page) and can be modified from any micro flow. how can we do that?? 

asked
2 answers
0

I have accomplished something similar to this with a small entity in the database that has 1 attribute.  Then build a microflow that either creates an object of this entity (if it doesn't already exist) or returns the first object of this entity retrieved from the database.  This microflow should ensure that only one object of this entity exists in the database.  Then I call the microflow in the application wherever I need to use or change the value of the attribute.

answered
0

Entity with 1 property , you can do all what you need from anywhere.

answered