1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  MethodOverride CleanUpOnLabelValue ( 
 |    String targetLabel, 
 |    String cleanupLabelValue 
 |  ) 
 |  { 
 |    TextBody: 
 |    [* 
 |      // Find or create KpiLabel and KpiLabelValue 
 |      kpiLabel := KpiLabel::Find( this.KpiTracker(), targetLabel ); 
 |      kpiLabelValue := KpiLabelValue::Find( kpiLabel, cleanupLabelValue ); 
 |       
 |      // Call the method CleanUpOnLabelValue to delete snapshots with matching label value 
 |      if( not isnull( kpiLabel ) and not isnull( kpiLabelValue ) ) 
 |      { 
 |        this.CleanUpOnLabelValue( kpiLabelValue ); 
 |      } 
 |    *] 
 |  } 
 |  
  |