COSCostBalances::createTempFromDatabase Method
Initializes a COSCostBalances record buffer for a combination of a forecast model, calculation, and cost value type from a time interval.
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 COSCostBalances createTempFromDatabase(
COSPlanModelId _planModelId,
COSCalculationId _calculationId,
TransDate _startDate,
TransDate _endDate,
COSCostValueType _costValueType,
[COSVersionID _versionID])
Microsoft Dynamics AX 2012 R2 (SYS)
client server public static COSCostBalances createTempFromDatabase(
COSPlanModelId _planModelId,
COSCalculationId _calculationId,
TransDate _startDate,
TransDate _endDate,
COSCostValueType _costValueType,
[COSVersionID _versionID])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
client server public static COSCostBalances createTempFromDatabase(
COSPlanModelId _planModelId,
COSCalculationId _calculationId,
TransDate _startDate,
TransDate _endDate,
COSCostValueType _costValueType)
Microsoft Dynamics AX 2012 (FPK)
client server public static COSCostBalances createTempFromDatabase(
COSPlanModelId _planModelId,
COSCalculationId _calculationId,
TransDate _startDate,
TransDate _endDate,
COSCostValueType _costValueType)
Microsoft Dynamics AX 2012 (SYS)
client server public static COSCostBalances createTempFromDatabase(
COSPlanModelId _planModelId,
COSCalculationId _calculationId,
TransDate _startDate,
TransDate _endDate,
COSCostValueType _costValueType)
Run On
Called
Parameters
- _planModelId
Type: COSPlanModelId Extended Data Type
A COSPlanModelId value that represents the forecast model ID.
- _calculationId
Type: COSCalculationId Extended Data Type
A COSCalculationId value that represents the ID of the calculation.
- _startDate
Type: TransDate Extended Data Type
The starting date of the interval.
- _endDate
Type: TransDate Extended Data Type
The end date of the interval.
- _costValueType
Type: COSCostValueType Enumeration
A COSCostValueType enumeration value that represents the calculation value type.
- _versionID
Type: COSVersionID Extended Data Type
Return Value
Type: COSCostBalances Table
The initialized COSCostBalances record buffer.
Remarks
The balances in the buffer are initialized with the current data from the database.