Quintiq file version 2.0
#parent: ListRoutings
Response OnClick (
  structured[Routing] selection
) id:Response_ListRoutings_MenuDisableRoutings_OnClick
{
  #keys: '[139394.0.1498606657]'
  CanBindMultiple: false
  DefinitionID => /ListRoutings/Responsedef_ListRoutings_WebMenu_OnClick
  Initiator: 'MenuDisableRoutings'
  Precondition:
  [*
    return Routing::CanEnableRouting( selection, false, feedback );
  *]
  QuillAction
  {
    Body:
    [*
      operations := Routing::GetAllOperations( selection );
      if( ApplicationMacroPlanner.GetPeriodTaskRemovalWarningDialog( operations,
                                                                     Routing::GetDisplayDefinitionName() ) )
      {
        Routing::ToggleIsEnabled( selection, false /*isenabled*/ )
      }
    *]
    GroupServerCalls: false
  }
}
