Quintiq file version 2.0 
 | 
#parent: ListLanes 
 | 
Response OnDropEmpty ( 
 | 
  structured[Unit] source 
 | 
) id:Response_ListLanes_OnDropEmpty 
 | 
{ 
 | 
  #keys: '[139394.0.1499794589]' 
 | 
  CanBindMultiple: false 
 | 
  DefinitionID: 'Responsedef_WebList_OnDropEmpty' 
 | 
  Precondition: 
 | 
  [* 
 | 
    return Lane::CanCreate( feedback, MacroPlan ) 
 | 
           and Lane::CanCreateFromUnits( feedback, source ); 
 | 
  *] 
 | 
  QuillAction 
 | 
  { 
 | 
    Body: 
 | 
    [* 
 | 
      // Create new Lane with the given units. 
 | 
      lanes := Lane::CreateFromUnits( source ); 
 | 
       
 | 
      // Auto select newly created lanes 
 | 
      if( lanes.Size() > 0 ) 
 | 
      { 
 | 
        ApplicationMacroPlanner.SelectListObjects( ListLanes, lanes ); 
 | 
      } 
 | 
    *] 
 | 
    GroupServerCalls: false 
 | 
  } 
 | 
} 
 |