lazhen
2025-01-07 b3987122cbbc46c5c59d3173f37fca3170b6dc5a
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
Quintiq file version 2.0
#parent: PanelInitChoice/ButtonSubmit
Response OnClick () id:Response_PanelInitChoice_ButtonSubmit_OnClick
{
  #keys: '[121114.1.2065122641]'
  Body:
  [*
    // OnClick Submit Button
    
    choice := DataHolderCurrentInitChoice.Data();
    
    next := choice.Select( RadioButtonGroupChoices.BoundValue() );
    
    ListInitElement.SelectByKey( next.Key() );
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    // Enable when there is something to submit
    
    return not isnull( DataHolderCurrentInitChoice.Data() ) // To prevent null error when clicking 'Next' too quickly
           and RadioButtonGroupChoices.BoundValue() <> "";
  *]
}