Quintiq file version 2.0
#parent: GanttChartUnitCalendar
Response OnClick (
  structured[UnitPeriod] selection,
  Unit row
) id:Response_GanttChartUnitCalendar_MenuIsPlannedInfinite_OnClick
{
  #keys: '[112884.1.974879662]'
  Body:
  [*
    //Change plan finite/infinite
    status := not selection.Element( 0 ).IsPlannedInfinite();
    row.PlanInfiniteUnitPeriods( selection, status );
  *]
  DefinitionID => /GanttChartUnitCalendar/Responsedef_GanttChartUnitCalendar_Menu_OnClick
  Initiator: 'MenuIsPlannedInfinite'
  Precondition:
  [*
    return UnitPeriod::CanToggleCapacityConstraint( feedback, selection );
  *]
}
