AxInventDim::findInventDim Method [AX 2012]

For internal use only. Finds a valid inventory dimension, that is, a inventDim record, for a particular item.

Syntax

client server public static container findInventDim(ItemId _itemId, [boolean _useInventDimCombination])

Run On

Called

Parameters

  • _useInventDimCombination
    Type: boolean
    A Boolean value that determines whether to verify that the inventory dimension exists; optional.

Return Value

Type: container
A container that holds the following elements:

  • A Boolean value that indicates whether dimensions are active for the item.

  • A record of the InventDim table.

  • A Boolean value that indicates whether the inventory dimension returned is a dirty save. A dirty save is save that is not according to the item default values.

Remarks

The findInventDim method that is used to populate inventory dimension ID, that is, a inventDimId value, fields before the inventory dimension is processed. If there are no default values set up on the item, any valid inventDim is selected, and the sales line inventDimId field is marked as dirty saved until a valid inventDim record is found through the inventDim section of the XML.

The findInventDim method is only for internal use. Do not call it through the interface.

See Also

Reference

AxInventDim Class