1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod ValidateInput ( 
 |    output String feedback_o, 
 |    Real inputvalue, 
 |    String AttributeName, 
 |    Real LowerLimit, 
 |    Real UpperLimit 
 |  ) declarative remote as Boolean 
 |  { 
 |    Description: 'Validate user input from dialog' 
 |    TextBody: 
 |    [* 
 |      // edz1 Jun-2-2016 (created) 
 |      feedback_o := '' 
 |       
 |      if( inputvalue < LowerLimit or inputvalue > UpperLimit ) 
 |      { 
 |        feedback_o := Translations::MP_NumericalValueRange_ValidateInput( AttributeName, LowerLimit, UpperLimit ); 
 |      } 
 |       
 |      return feedback_o = ''; 
 |    *] 
 |  } 
 |  
  |