Quintiq file version 2.0
#parent: ListScenario
Response OnClick (
  structured[Scenario] selection
) id:Response_ListScenario_MenuCreateScenarioAndDoSync_OnClick
{
  #keys: '[414384.0.683912040]'
  CanBindMultiple: false
  DefinitionID => /ListScenario/Responsedef_ListScenario_WebMenu_OnClick
  Initiator: 'MenuCreateScenarioAndDoSync'
  Precondition:
  [*
    return not isnull( ScenarioManager ) and selection.Element( 0 ).CanCreate( feedback, true );
  *]
  QuillAction
  {
    Body:
    [*
      // To be derived - ScenarioMP
      // Create a new Scenario
      dlg := construct( DialogCreateEditScenario );
      parent := selection.Element( 0 ).Parent();
      dlg.NewScenario( ScenarioManager, parent, true );
    *]
    GroupServerCalls: false
  }
}
