| Quintiq file version 2.0 | 
| #parent: #root | 
| Method SetCopyData ( | 
|   Scenario selection | 
| ) id:Method_ScenarioManager_DialogCreateEditMPScenario_SetCopyData | 
| { | 
|   #keys: '[127238.1.1145415069]' | 
|   Body: | 
|   [* | 
|     // Set the default data to copy scenario | 
|      | 
|     this.Data( selection ); // Allows SelectionKBBranch to bind to the correct branch | 
|     scenarioname := ScenarioManager.GetUniqueScenarioName( selection.Name() ); | 
|     EditorScenarioName.Text( scenarioname ); | 
|      | 
|     EditorComment.Text( selection.Comment() ); | 
|     this.SetAdvanced(); | 
|      | 
|     RadioButtonGroupStorageState.BoundValue( selection.State() ); | 
|      | 
|     SelectionStrategy.Data( selection.SelectedStrategy() ); | 
|      | 
|     // disabling KT since using copy method similar to web copying KB from original | 
|     TabPageKnowledge.DisableWithUserFeedback( Translations::MP_Designer_DisableKnowledgeCopyScenario() ); | 
|   *] | 
| } |