Quintiq file version 2.0
#parent: ListScenario
Response OnClick (
  ScenarioMP selection
) id:Response_ListScenario_MenuCopyScenario_OnClick
{
  #keys: '[134266.1.2107680865]'
  CanBindMultiple: false
  DefinitionID => /ListScenario/Responsedef_ListScenario_WebMenu_OnClick
  Initiator: 'MenuCopyScenario'
  Precondition:
  [*
    feedback := ApplicationMacroPlanner.HasValidDataset( selection );
    return feedback = '' and selection.CanCopy( feedback );
  *]
  QuillAction
  {
    Body:
    [*
      // Copy scenario
      dlg := construct( DialogCreateEditScenario );
      dlg.CopyScenario( selection );
    *]
    GroupServerCalls: false
  }
}
