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_ApplicationLibMacroPlanner_HasValidDataset 
 |  { 
 |    #keys: '[11660.0.248179132]' 
 |    Body: 
 |    [* 
 |      // Check if a scenario has a valid dataset 
 |       
 |      feedback := ''; 
 |      if( isnull( scenario ) ) 
 |      { 
 |        feedback := Translations::MP_MacroPlan_HasCompany(); 
 |      } 
 |      else if( not exists( DataHolderObjectInfo.Data(), 
 |                           Elements, 
 |                           e, 
 |                           e.MDSID().MDSKey() = scenario.DatasetMDSID() ) ) 
 |      { 
 |        feedback := Translations::ScenarioManager_InvalidScenarioDataset( scenario.Name() ); 
 |      } 
 |       
 |      return feedback; 
 |    *] 
 |  } 
 |  
  |