1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method DeleteAllData 
 |  { 
 |    Description: 'Delete all data from scenario' 
 |    TextBody: 
 |    [* 
 |      // Workaround since having problem with null object when try to re-create the relations, so manually delete each object 
 |      units := selectset( this, Unit, unit, true ); 
 |      Unit::Delete( units ); 
 |       
 |      products := selectset( this, Product_MP, product, true ); 
 |      Product_MP::Delete( products ); 
 |       
 |      productlevels := selectset( this, ProductLevel_MP, productlevel, true ); 
 |      ProductLevel_MP::Delete( productlevels ); 
 |       
 |      stockingpoints := selectset( this, StockingPoint_MP, stockingpoint, true ); 
 |      StockingPoint_MP::Delete( stockingpoints ); 
 |    *] 
 |  } 
 |  
  |