Quintiq file version 2.0
#parent: ListFulfillmentTarget
Response OnContextMenu (
  structured[FulfillmentTarget] selection
) id:Response_ListFulfillmentTarget_OnContextMenu
{
  #keys: '[113694.2.1018454034]'
  Body:
  [*
    // Change enable / disable context menu
    
    if( selection.Element( 0 ).IsEnabled() )
    {
      MenuEnableDisableServiceLevels.Text( Translations::MP_Designer_Disable() );
      MenuEnableDisableServiceLevels.SetProperty( 'Image', 'EMPTYCHECKBOX' );
      popupListServiceLevel.Popup( this, x, y );
    
    }
    else
    {
      MenuEnableDisableServiceLevels.Text( Translations::MP_Designer_Enable() );
      MenuEnableDisableServiceLevels.SetProperty( 'Image', 'CHECKEDCHECKBOX' );
      popupListServiceLevel.Popup( this, x, y );
    }
  *]
  CanBindMultiple: false
  DefinitionID => /ListFulfillmentTarget/Responsedef_ListFulfillmentTarget_OnContextMenu
}
