WrkCtrCapResPeriodTemplateCalculate.calcCapacityLoadByPeriod Method [AX 2012]
Calculates the periods and retrieves the results as temporary records.
Syntax
public WrkCtrCapResPeriodTmp calcCapacityLoadByPeriod(
RefRecId _workPeriodTemplateRecId,
TransDate _fromDate,
TransDate _toDate,
FormDataSource _workCalendarDateDataSource)
Run On
Called
Parameters
- _workPeriodTemplateRecId
Type: RefRecId Extended Data Type
An integer that contains the period template record ID.
- _fromDate
Type: TransDate Extended Data Type
A date that defines the lower limit for the period template.
- _toDate
Type: TransDate Extended Data Type
A date that defines the upper limit for the period template.
- _workCalendarDateDataSource
Type: FormDataSource Class
Form data source for WorkCalendarDate table that contains data for calculation.
Return Value
Type: WrkCtrCapResPeriodTmp Table
The handle of the table buffer of the wrkCtrCapResPeriodTmp object variable that contains all created periods.