Quintiq file version 2.0
#parent: ListRouting
Response OnClick (
  structured[Routing] selection
) id:Response_ListRouting_MenuEnableDisableRoutings_OnClick
{
  #keys: '[113694.1.1934066259]'
  Body:
  [*
    // Toggle IsEnabled of operation
    Form.EnableDisableRoutings( selection );
  *]
  CanBindMultiple: false
  DefinitionID => /ListRouting/Responsedef_ListRouting_Menu_OnClick
  Initiator: 'MenuEnableDisableRoutings'
  Precondition:
  [*
    if ( selection.Element( 0 ).IsEnabled() )
    {
      MenuEnableDisableRoutings.SetProperty( 'Image', 'EMPTYCHECKBOX' );
      MenuEnableDisableRoutings.Text( Translations::MP_Designer_Disable() );
    }
    else
    {
      MenuEnableDisableRoutings.SetProperty( 'Image', 'CHECKEDCHECKBOX' );
      MenuEnableDisableRoutings.Text( Translations::MP_Designer_Enable() );
    }
    return true;
  *]
}
