COSCostDistributionLine::exist Method
Checks whether the specified record in the COSCostDistributionLine table exists.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
client server public static boolean exist(
COSVersionID _cosVersionID,
COSDistributionLevel _cosDistributionLevel,
COSStructure _cosStructure,
COSDistributionReference _cosDistributionReference,
COSCostDimensionCode _dimensionCode,
COSCostDimensionValue _sysDim,
RefRecId _cosDistributionRecId)
Microsoft Dynamics AX 2012 R2 (SYS)
client server public static boolean exist(
COSVersionID _cosVersionID,
COSDistributionLevel _cosDistributionLevel,
COSStructure _cosStructure,
COSDistributionReference _cosDistributionReference,
COSCostDimensionCode _dimensionCode,
COSCostDimensionValue _sysDim,
RefRecId _cosDistributionRecId)
Microsoft Dynamics AX 2012 Feature Pack (SYS)
client server public static boolean exist(
COSVersionID _cosVersionID,
COSDistributionLevel _cosDistributionLevel,
COSStructure _cosStructure,
COSDistributionReference _cosDistributionReference,
COSCostDimensionCode _dimensionCode,
COSCostDimensionValue _sysDim)
Microsoft Dynamics AX 2012 (FPK)
client server public static boolean exist(
COSVersionID _cosVersionID,
COSDistributionLevel _cosDistributionLevel,
COSStructure _cosStructure,
COSDistributionReference _cosDistributionReference,
COSCostDimensionCode _dimensionCode,
COSCostDimensionValue _sysDim)
Microsoft Dynamics AX 2012 (SYS)
client server public static boolean exist(
COSVersionID _cosVersionID,
COSDistributionLevel _cosDistributionLevel,
COSStructure _cosStructure,
COSDistributionReference _cosDistributionReference,
COSCostDimensionCode _dimensionCode,
COSCostDimensionValue _sysDim)
Run On
Called
Parameters
- _cosVersionID
Type: COSVersionID Extended Data Type
The version ID of the record to check.
- _cosDistributionLevel
Type: COSDistributionLevel Enumeration
The distribution level of the record to check.
- _cosStructure
Type: COSStructure Extended Data Type
The identifier of the line structure of the record to check.
- _cosDistributionReference
Type: COSDistributionReference Extended Data Type
The reference type for the calculated allocation value of the record to check.
- _dimensionCode
Type: COSCostDimensionCode Extended Data Type
The cost dimension code of the record to check.
- _sysDim
Type: COSCostDimensionValue Extended Data Type
The cost dimension value of the record to check.
- _cosDistributionRecId
Type: RefRecId Extended Data Type
The ID of the COSCostDistribution record that is referenced by the record to check.
Return Value
Type: boolean
true if the specified record exists; otherwise, false.
Remarks
This method now uses the ID of the referenced COSCostDistribution record as a criterion.