| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod ValidateInput ( | 
|   output String feedback_o, | 
|   Real weight, | 
|   Number level | 
| ) declarative remote as Boolean | 
| { | 
|   Description: 'Check if editing of kpi weight is allowed. Called by designer' | 
|   TextBody: | 
|   [* | 
|     maxlevel := GlobalParameters_MP::GetDefaultNumberOfStrategyLevel(); | 
|      | 
|     if( weight <= 0 ) | 
|     { | 
|       feedback_o := Translations::MP_KPIWeight_ValidateInput_IsNegativeWeight(); | 
|     } | 
|      | 
|     else if( level < 0 or level > maxlevel ) | 
|     { | 
|       feedback_o := Translations::MP_KPIWeight_ValidateInput_InvalidLevel( maxlevel ); | 
|     } | 
|      | 
|     return feedback_o = ''; | 
|   *] | 
| } |