Metric conversion

Hello,   Can anyone help me with this please? We have an multiple entities with multiple attributes like length, width, height. These should standard be in meters/centimeters. But there should be a possibility to input these attributes with measurements like they do in countries like UK/USA (feet,...) and convert them to the metric standards. What is the best way to do this in Mendix?   Kind regards, Steven
1 answers

Just create some extra input fields where they chose the metric they chose to do the input in and use an on change microflow to calculate in the standard metric. You could also use a before commit event to do the recalculation. But on change might be better if you want to show the enduser the result first.