Constants should be in one location within a module - Mendix Forum

Constants should be in one location within a module

7

Now it is possible to define constants at any place within a module. However they should be unique within that module. So wouldn't it make more sense to group them on the same level, just like domain model and security? 

This would also improve their exposure and reusabilty. As now you have to use the find advance feature to show all constants, but this will list all constants within the application, not just a specific module. Besides when double clicking the result, it will open the constant instead of highlighting it in the App Explorer window. 

 

asked
1 answers

Actually, same for enums, image collections, maybe even message definitions and web services.

 

I would love that if you create a folder on the top level it automaticly can create folders for flows and pages

Created