| Quintiq file version 2.0 | 
| #parent: CustomDrawComponentRoutingConfigurator/CustomDrawDataLayerOperationOutput | 
| Response OnClickObject ( | 
|   OperationOutput object | 
| ) id:Response_CustomDrawComponentRoutingConfigurator_CustomDrawDataLayerOperationOutput_OnClickObject | 
| { | 
|   #keys: '[110994.0.1959658886]' | 
|   Body: | 
|   [* | 
|     //Add selected output to dataholder highlight | 
|     data := DataHolderHighlightOperationInputOutputNode.Data(); | 
|      | 
|     index := data.Find( object ); | 
|     found := index >= 0; | 
|      | 
|     if( action.IsControl() ) | 
|     { | 
|       if( found ) // Delete object | 
|       { | 
|         data.Delete( index ); | 
|       } | 
|       else // Add object | 
|       { | 
|         data.Add( object ); | 
|       } | 
|     } | 
|     else // Flush all objects | 
|     { | 
|       data.Flush(); | 
|       data.Add( object ); | 
|     } | 
|   *] | 
|   DefinitionID: 'Responsedef_CustomDrawBaseDataLayer_OnClickObject' | 
| } |