Compare attibute to default value

0
Hello Mendix community, I'd like to compare the value of an attribute from my entity with its default value defined in the domain model. My goal is to hide a UI element if the attribute still holds the default value. I aim to reference the default value directly from the domain model instead of hardcoding it in multiple places. Could someone please provide some guidance or ideas on how to achieve this using Expressions, Micro-, Nanoflows, etc in Mendix?
asked
1 answers
2

I don't think you can retrieve the default value, unless you create a new one just to see the default value.

 

Easiest might be to create attribute for holding default values for each of your original attribute, this way you can compare on screen easily.

As a bonus you can change default values from your application without redeploying it.

 

answered