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 PropagateLabel ( 
 |    shadow[KpiSnapshotSetData] setData, 
 |    String label 
 |  ) id:Method_Kpi_GlobalState_PropagateLabel 
 |  { 
 |    #keys: '[136398.1.733256665]' 
 |    Body: 
 |    [* 
 |      // Fills the UI_LabelValue field on all the KpiValue objects. 
 |      traverse( setData, SnapshotData, snapshot ) 
 |      {    
 |        labelValue := guard( select( snapshot, Label, l, l.Name() = label ).Value(), '' );  
 |        traverse( snapshot, Value, kpi )  
 |        { 
 |          kpi.UI_LabelValue( labelValue ); 
 |        } 
 |      } 
 |    *] 
 |  } 
 |  
  |