yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
  }
}