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
30
| Quintiq file version 2.0
| #parent: #root
| StaticMethod ValidateInput (
| ScenarioManager scenariomanager,
| String name,
| SolverSettingGroup solverrsettinggroup,
| output String feedback_o
| ) remote as Boolean
| {
| Description: 'Checks whether the name is not empty or already in use'
| TextBody:
| [*
| // Martijn van Elzakker Aug-5-2015 (created)
|
| if( name = "" )
| {
| feedback_o := Translations::MP_SolverSettingGroup_ValidateInput_IsInvalidName();
| }
|
| if( exists( scenariomanager,
| SolverSettingGroup,
| group,
| group.Name() = name and group <> solverrsettinggroup ) )
| {
| feedback_o := Translations::MP_SolverSettingGroup_ValidateInput_IsNameExists();
| }
|
| return feedback_o = "";
| *]
| }
|
|