UnitOfMeasureConverter Class [AX 2012]

The UnitOfMeasureConverter class provides the methods to convert values between units of measure.

class UnitOfMeasureConverter implements SysPackable

Run On

Called

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

Community Additions

ADD
Show: