Quintiq file version 2.0
#parent: PanelScenarioSelection/ButtonCopyScenario_844
Response OnClick () id:Response_ActionBarGroupScenarioSelection_ButtonCopyScenario_OnClick_603
{
  #keys: '[136682.1.411669827]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    return MacroPlan::HasMacroPlan( MacroPlan, feedback )
           and guard( DataHolderActiveScenario.Data().CanCopy( feedback ), false );
  *]
  QuillAction
  {
    Body:
    [*
      // Copy current scenario
      dlg := construct( DialogCreateEditScenario );
      dlg.CopyScenario( ApplicationMacroPlanner.DataHolderActiveScenario().Data().astype(  ScenarioMP ) );
    *]
    GroupServerCalls: false
  }
}
