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
| Quintiq file version 2.0
| #parent: #root
| Method HasValidDataset (
| Scenario scenario
| ) as String id:Method_ApplicationMacroPlanner_HasValidDataset
| {
| #keys: '[139394.0.747746258]'
| Body:
| [*
| // Check if a scenario has a valid dataset
|
| feedback := '';
| if( isnull( scenario ) )
| {
| feedback := Translations::MP_MacroPlan_HasCompany();
| }
| else if( not exists( ExternalMDSEditor::Editor().ObjectInfos(),
| Elements,
| e,
| e.MDSID().MDSKey() = scenario.DatasetMDSID() ) )
| {
| feedback := Translations::ScenarioManager_InvalidScenarioDataset( scenario.Name() );
| }
|
| return feedback;
| *]
| }
|
|