Quintiq file version 2.0
#parent: ListSalesDemand
Response OnClick (
  structured[Forecast] selection
) id:Response_ListSalesDemand_MenuCopySalesDemand_OnClick
{
  #keys: '[124112.0.98545301]'
  Body:
  [*
    // Copy a sales demand
    salesdemands := Forecast::Copy( selection );
    
    // Auto select newly created sales demands
    if( salesdemands.Size() > 0 )
    {
      ApplicationLibMacroPlanner.AutoSelectElementsInList( ListSalesDemand, salesdemands );
    }
  *]
  CanBindMultiple: false
  DefinitionID => /ListSalesDemand/Responsedef_ListSalesDemand_Menu_OnClick
  Initiator: 'MenuCopySalesDemand'
}
