Quintiq file version 2.0
#parent: ListScenario
Response OnClick (
  structured[Scenario] selection
) id:Response_ListScenario_MenuCreateScenario_OnClick #extension
{
  Precondition:
  [*
    return not isnull( ScenarioManager ) and selection.Element( 0 ).CanCreate( feedback, true );
  *]
  QuillAction #extension
  {
    Body:
    [*
      // To be derived - ScenarioMP
      // Create a new Scenario
      dlg := construct( DialogCreateEditScenario );
      dlg.checkboxEnableSync().Checked( false );
      dlg.checkboxEnableSync().Visible( false );
      dlg.dropDownStringListGeneral().Visible( false );
      dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableBusinessTypes() );
      dlg.checkboxIsKeyProduct().Visible( false );
      dlg.checkboxCreatePurchaseSupplyProduct().Visible( false );
      parent := selection.Element( 0 ).Parent();
      dlg.NewScenario( ScenarioManager, parent );
    *]
  }
}
