| Quintiq file version 2.0 | 
| #parent: CustomDrawComponent/CustomDrawDataLayerNode | 
| Response OnDrop ( | 
|   structured[StockingPointNode] source, | 
|   UnitNode droptarget | 
| ) id:Response_CustomDrawComponent_CustomDrawDataLayerNode_OnDrop_259 | 
| { | 
|   #keys: '[110994.0.667421394]' | 
|   Body: | 
|   [* | 
|     // Drop stocking point nodes to unit node to create link | 
|      | 
|     feedback := ''; | 
|     sources := selectset( source, Elements.StockingPoint_MP, sp, true, true ); | 
|      | 
|     if ( droptarget.Unit().CanLinkToStockingPoints( feedback, sources, true ) ) | 
|     { | 
|       droptarget.Unit().LinkToStockingPoints( sources, true ); | 
|     } | 
|     else | 
|     { | 
|       droptarget.Unit().RemoveAsInputToStockingPoints( sources ); | 
|     } | 
|   *] | 
|   DefinitionID: 'Responsedef_CustomDrawDataLayer_OnDrop' | 
|   UserRequiresReadWrite: true | 
| } |