UnitOfMeasureConverter Class [AX 2012]
The UnitOfMeasureConverter class provides the methods to convert values between units of measure.
| Method | Description | |
|---|---|---|
| appendForwardConversionToConversionCache | Appends a forward conversion to the cached chain of conversions. |
| appendInverseConversionToConversionCache | Appends an inverse conversion to the cached chain of conversions. |
| cacheConversion | Inserts a conversion into the cache. |
| cachedConversion | Returns a UnitOfMeasureConversionCache object that contains cached conversions. |
| calclulateConversionOnClient | Delegates a conversion calculation to the server. |
| calculateConversion | Calculates a conversion between two units of measure based on defined conversions in the UnitOfMeasureConversion table. |
| calculateConversionThroughOneBaseUnit | Calculates parameters of the conversion between two units by a chain of two conversions found through the base unit. |
| calculateDirectConversion | Calculates parameters of the conversion between two units by found forward or inverse conversion. |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| canValueBeConverted | Determines whether conversion can be performed between two units of measure. |
| conversionNotExistMessage | Determines the error message for when a conversion does not exist. |
| convertValue | Converts a real value between two units of measure and applies rounding. |
| deleteInvalidCachedConversion | Deletes an invalid record in the conversion cache. |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| findCachedConversion | Lookups the cache for a stored conversion. |
| findConversion | Finds a conversion between two units of measure. |
| findConversionThroughOneBaseUnit | Finds a chain of two conversions between two units of measure through a base unit of measure. |
| findDirectConversion | Finds a direct conversion between two units of measure. |
| findValidCachedConversion | Looks up the cache for a stored conversion and validates that the cached version is valid. |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| initConversionCache | Initializes the cached conversion from some calculated parameters. |
| initConversionCacheWithForwardConversion | Initializes the cached conversion with a forward conversion. |
| initConversionCacheWithInverseConversion | Initializes the cached conversion with an inverse conversion. |
| new | Initializes a new instance of the UnitOfMeasureConverter class. |
| notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
| notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
| objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
| owner | Returns the instance that owns the object. (Inherited from Object.) |
| pack | Serializes the current instance of the UnitOfMeasureConverter class. |
| parmApplyRounding | Gets or sets the ApplyRounding parameter. |
| parmFromUnitId | Gets or sets the from unit ID parameter. |
| parmFromUnitOfMeasure | Gets or sets the FromUnitOfMeasure parameter. |
| parmRoundAbsoluteValue | Gets or sets the RoundAbsoluteValue parameter. |
| parmSkipException_LV | Get or set skipException_LV parameter. |
| parmToUnitId | Gets or sets the ID of the unit of measure to convert to. |
| parmToUnitOfMeasure | Gets or sets the ToUnitOfMeasure parameter. |
| performValueConversion | |
| roundingDecimalPrecision | Retrieves the decimal precision for the unit of measure to which to convert. |
| roundValue | Applies rounding to a real value. |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| unpack | Deserializes the _packedClass parameter value to an instance of the UnitOfMeasureConverter class. |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| validateParameters | Validates the specified parameters. |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
| ::calculateConversionOnServer | Calculates a conversion on the server. |
| ::canBeConverted | Determines whether one unit of measure can be converted to another unit of measure. |
| ::construct | Initializes a new instance of the UnitOfMeasureConverter class. |
| ::convert | Converts a real value measured in one unit of measure to the real value measured in another unit of measure. |
| ::convertibleUnitsQuery | Builds a query to fetch all the units of measure that can be converted to the specified unit of measure. |
| ::multiplyConversionFactors | Multiplies two conversion factors. |
| ::newFromConversionParameters | Creates and initializes a new instance of the UnitOfMeasureConverter class. |
| ::newFromPackedClass | Creates a new instance of the UnitOfMeasureConverter class and deserialized the _packedClass parameter value. |
| ::queryStringConversionBetweenUnits | Builds a string representation of the query range to filter conversion between two units. |
| ::queryStringConversionToFixedUnit | Builds a string representation of the query range to filter conversion to a specified unit. |
Community Additions
ADD
Show: