Quintiq file version 2.0
#parent: CustomDrawComponent
Response OnClick (
  structured[UnitNode] selection
) id:Response_CustomDrawComponent_MenuCopyNode_OnClick
{
  #keys: '[110880.3.1018867248]'
  Body:
  [*
    // Copy unit
    units := selectset( selection, Elements.Unit, unit, true, true );
    Unit::Copy( units, DataHolderView.Data() );
    
    // Toggle on value holder to indicate changes
    ApplicationLibMacroPlanner.SetSupplyChainOverviewWarning();
  *]
  CanBindMultiple: false
  DefinitionID => /CustomDrawComponent/Responsedef_CustomDrawComponent_Menu_OnClick
  Initiator: 'MenuCopyNode'
  UserRequiresReadWrite: true
}
