Explanation for Overlay Class Fields
Margin Value is invalid. Not valid range (inches 0.1 - 2.0, centimeters 0.26 - 5.1).
It means that input value should be a number with fractional part but the field type is long, so this field does not accept number with fractional part. Converter solves this.
There are two cases, depending on value of
measurementTypeId field.
- If value of measurementTypeId field is INCHES and you want to put 0.1 into a field then you should multiply 0.1 by 2540, the result is the value of field.
- If value of measurementTypeId field is CENTIMETERS and you want to put 0.26 into a field then you should multiply 0.26 by 1000, the result 260 is the value of field.