UnitConvTable
The UnitConvTable
property is a list of unit conversion objects.
Each unit conversion object must have three properties:
SourceUnit_Id
: Id of the source unit for conversion.TargetUnit_Id
: Id of the target unit for conversion.ConvFunction
: Conversion function that is applied to any value to convert it from source unit to target unit. It must be declared as a function in string format, where ‘x’ will be the input for the function, and it must return a value.
"UnitConvTable": [
{
"SourceUnit_Id": "Unit_Length_mm",
"TargetUnit_Id": "Unit_Length_inch",
"ConvFunction": "function (x) {return x*0.03937;}"
},