What is the best way to handle quantities (number + unit of measure, example 10.5 centimeters) in Mendix?
Considering: domain model GUI data visualization the user must be allowed to view the information in another compatible measurement unit: 10.5 centimeters ↔ 4.133 inches Thanks in advance!
Vinicius Strugata Ambrosio
I would convert all metrics to a standard unit e.g. centimeters and store that as a decimal. Then convert this to other units as needed. To go a step further you could store per user their preferred unit, this is fairly easy to retrieve on a page and in a microflow.
Hope this helps