PdcCalculation.RecalcDatesPerOperation
Jump to navigation
Jump to search
Declaration
RecalcDatesPerOperation(calculateSubs: Boolean)
Description
Recalculates the start date for all operations in the calculation, the parameter can be set to True to includes any subcalculations.
Notes
This method will recalculate the start date for alle operations and then refresh the form. The new dates are updated in the database.
Code example
This code example is will take the active calculation, that has a production number reserved, and adds a new operation that will not have a start date. Then by calling the function it will recalculate the start dates.
PDC.App.ActiveCalculation.OperationList.InsertLineNumber(PDCEXT.pdcOperationKind.pdcInternalOp, "FR001", 15)
PDC.App.ActiveCalculation.RecalcDatesPerOperation(True)
PDC.App.ActiveCalculation.Save()
Availability
2024.2.3.0