| Quintiq file version 2.0 | 
| #parent: SelectionOptimizerPuzzle | 
| Response OnUserSelectionChanged () id:Response_SelectionOptimizerPuzzle_OnUserSelectionChanged | 
| { | 
|   #keys: '[146140.0.1815029141]' | 
|   Body: | 
|   [* | 
|     // When user change OptimizerPuzzle, create a new wip associated to this optimizerPuzzle | 
|     // This allow to change the values of displayed inputs because they are link to wip | 
|     // OptimizerPuzzleWIP cannot be edited | 
|      | 
|     // Get current optimizerpuzzle selected in ddl | 
|     optimizerpuzzle := SelectionOptimizerPuzzle.Data(); | 
|      | 
|     Dialog.EnableDisableComponents( optimizerpuzzle.astype( OptimizerPuzzle ) ); | 
|      | 
|     // Create a wip associated to the optimizer puzzle selected | 
|     wip := optimizerpuzzle.Edit( MacroPlan, QuintiqUser::CurrentUser().Name() ); | 
|      | 
|     // Store the wip created | 
|     Dialog.Data( wip ); | 
|   *] | 
|   CanBindMultiple: false | 
|   DefinitionID: 'Responsedef_GUISelectionBase_OnUserSelectionChanged' | 
| } |