Quintiq file version 2.0
#parent: ListScenario
Response OnClick (
  ScenarioNode selection
) id:Response_ListScenario_MenuCreateScenarioAndDoSync_OnClick_545 #extension
{
  Precondition:
  [*
    return not isnull( ScenarioManager ) and selection.CanCreate( feedback, true );
  *]
  QuillAction #extension
  {
    Body:
    [*
      // Create a new scenario
      dlg := construct( DialogCreateEditScenario );
      dlg.checkboxEnableSync().Visible( true );
      dlg.DropDownListGeneral().Visible( true );
      dlg.checkboxIsKeyProduct().Visible( true );
      dlg.checkboxCreatePurchaseSupplyProduct().Visible( true );
      dlg.NewScenario( ScenarioManager, selection, true );
    *]
  }
}
