Quintiq file version 2.0
#parent: ListScenario
Response OnClick (
  ScenarioFolder selection
) id:Response_ListScenario_MenuFolderNew_OnClick
{
  #keys: '[105706.2.383722033]'
  Body:
  [*
    // Create a new ScenarioFolder
    dlg := construct( ScenarioManager_DialogCreateEditScenarioFolder );
    folder := dlg.NewScenarioFolder( this, ScenarioManager, selection );
    
    //To make sure the active scenario on the supply chain overview panel is updated
    ApplicationLibMacroPlanner.AutoExpandSelection( this, folder );
  *]
  CanBindMultiple: false
  DefinitionID => /ListScenario/Responsedef_ListScenario_Menu_OnClick
  Initiator: 'MenuFolderNew'
  Precondition:
  [*
    return not isnull( ScenarioManager ) and selection.CanCreate( feedback, false );
  *]
  UserRequiresReadWrite: true
}
