| Quintiq file version 2.0 | 
| #parent: DataHolderOperation | 
| Response OnDataChanged () id:Response_DialogCreateEditFeedbackOperation_DataHolderOperation_OnDataChanged | 
| { | 
|   #keys: '[146140.0.269351904]' | 
|   CanBindMultiple: false | 
|   DefinitionID: 'Responsedef_WebComponent_OnDataChanged' | 
|   GroupServerCalls: true | 
|   Precondition: | 
|   [* | 
|     return this.Data().Size() > 0 | 
|   *] | 
|   QuillAction | 
|   { | 
|     Body: | 
|     [* | 
|       // This dataholder solve a problem with dialogs. When he user change an unit, a red cross was appearing on  | 
|       // the dropdown list operation during a really short time.  This is due to the fact that we are setting | 
|       // the dropdownlistlaneleg.data( null(LaneLeg ) ). | 
|       // If the Dialog data does not persist in the operation selection of the new unit, auto select  | 
|       // the first available operation. Else, keep the operation selection | 
|       if( not isnull( DataHolderDialogData.Data().Operation() ) ) | 
|       { | 
|         if( this.Data().Find( DataHolderDialogData.Data().Operation() ) < 0 ) | 
|         { | 
|           DropDownListOperation.Data( this.Data().Element( 0 ) ); | 
|         } | 
|         else | 
|         { | 
|           DropDownListOperation.Data( DataHolderDialogData.Data().Operation() ); | 
|         } | 
|       } | 
|     *] | 
|   } | 
| } |