| Quintiq file version 2.0 | 
| #parent: ListOperation | 
| Response OnClick ( | 
|   structured[Operation] selection | 
| ) id:Response_ListOperation_MenuEnableDisableOperations_OnClick | 
| { | 
|   #keys: '[113694.1.1934475541]' | 
|   Body: | 
|   [* | 
|     // Toggle IsEnabled of operation | 
|     Form.EnableDisableOperations( selection ); | 
|   *] | 
|   CanBindMultiple: false | 
|   DefinitionID => /ListOperation/Responsedef_ListOperation_Menu_OnClick | 
|   Initiator: 'MenuEnableDisableOperations' | 
|   Precondition: | 
|   [* | 
|     if ( selection.Element( 0 ).IsEnabled() ) | 
|     { | 
|       MenuEnableDisableOperations.SetProperty( 'Image', 'EMPTYCHECKBOX' ); | 
|       MenuEnableDisableOperations.Text( Translations::MP_Designer_Disable() ); | 
|     } | 
|     else | 
|     { | 
|       MenuEnableDisableOperations.SetProperty( 'Image', 'CHECKEDCHECKBOX' ); | 
|       MenuEnableDisableOperations.Text( Translations::MP_Designer_Enable() ); | 
|     } | 
|     return true; | 
|   *] | 
| } |