Quintiq file version 2.0
#parent: ListScenario
Response OnClick (
  Scenario selection
) id:Response_ListScenario_MenuScenarioEdit_OnClick
{
  #keys: '[11766.1.296330916]'
  Body:
  [*
    // Edit a Scenario
    if ( selection.istype( ScenarioMP ) )
    {
      dlg := construct( ScenarioManager_DialogCreateEditMPScenario );
      dlg.EditorScenarioName().SetFocus();
      dlg.EditScenario( selection, this );
    }
  *]
  CanBindMultiple: false
  DefinitionID => /ListScenario/Responsedef_ListScenario_Menu_OnClick
  Initiator: 'MenuScenarioEdit'
  Precondition:
  [*
    username := ApplicationLibMacroPlanner.GetUserName();
    return selection.CanEdit( feedback )
           and selection.CanModify( username, feedback );
  *]
  UserRequiresReadWrite: true
}
