Quintiq file version 2.0
#parent: CustomDrawRC/CustomDrawDataLayerOp
Response OnDrop (
  structured[Product_MP] source,
  Operation target
) id:Response_CustomDrawRC_CustomDrawDataLayerOp_OnDrop_715
{
  #keys: '[139394.0.1316636481]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCustomDrawDataLayer_OnDrop'
  QuillAction
  {
    Body:
    [*
      // Drop Product to operation to create operation input or output
      dummmyPISP := null( ProductInStockingPoint_MP );
      
      // Without control -> input
      if( not actionmodifier.IsControl() )
      {
        target.LinkProducts( source, true, dummmyPISP, false );
      }
      // Drop Product to operation + press CTRL to create operation output
      else
      {
        target.LinkProducts( source, false /*isinput*/, dummmyPISP, false );
      }
    *]
    GroupServerCalls: false
  }
}
