Quintiq file version 2.0 
 | 
#parent: PanelTransportationCost_57/DropDownListLane 
 | 
Response OnSelectionChanged ( 
 | 
  Lane selection 
 | 
) id:Response_PanelTransportationCost_57_DropDownListLane_OnSelectionChanged 
 | 
{ 
 | 
  #keys: '[145730.1.944936559]' 
 | 
  CanBindMultiple: false 
 | 
  DefinitionID: 'Responsedef_WebDropDownList_OnSelectionChanged' 
 | 
  Precondition: 
 | 
  [* 
 | 
    //Only fire this action when is not bacth create or edit 
 | 
    return DataHolderFormLaneLeg.Data().Size() < 2; 
 | 
  *] 
 | 
  QuillAction 
 | 
  { 
 | 
    Body: 
 | 
    [* 
 | 
      // Repopulate the origin & destination 
 | 
      selectedOrigin := DropDownListOrigin.Data(); 
 | 
      selectedDestination := DropDownListDestination.Data(); 
 | 
       
 | 
      Form.SwitchLane( selection, 
 | 
                       select( selection, Origin.StockingPoint_MP, sp, sp = selectedOrigin ), 
 | 
                       select( selection, Destination.StockingPoint_MP, sp, sp = selectedDestination ) ); 
 | 
    *] 
 | 
    GroupServerCalls: false 
 | 
  } 
 | 
} 
 |