Share via


WrkCtrScheduler.writeCapacityReservation Method [AX 2012]

Writes a capacity reservation record to the database.

Syntax

public void writeCapacityReservation(
    WrkCtrCapRes _capacityReservationTemplate, 
    date _fromDate, 
    TimeOfDay _fromTime, 
    date _toDate, 
    TimeOfDay _toTime, 
    WrkCtrLoadPct _loadPct, 
    CapacitySec _capacitySeconds, 
   [container _properties])

Run On

Server

Parameters

  • _capacityReservationTemplate
    Type: WrkCtrCapRes Table
    A WrkCtrCapRes buffer with all the job information already filled in.
  • _fromDate
    Type: date
    The Start date of the capacity reservation.
  • _fromTime
    Type: timeOfDay
    The Start time of the capacity reservation.
  • _toDate
    Type: date
    The End date of the capacity reservation.
  • _toTime
    Type: timeOfDay
    The End time of the capacity reservation.
  • _properties
    Type: container
    A container of properties to write.

Exceptions

Exception Condition
Error

An Exception is thrown in the case that no record insert list was created for the writing capacity reservations.

Remarks

A RecordInsertList is used when the reservations are being written.

See Also

Reference

WrkCtrScheduler Class