Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method PropagateTimeStamp ( 
 | 
  shadow[KpiSnapshotSetData] setData, 
 | 
  String timeType 
 | 
) id:Method_GlobalStateKpiTracker_PropagateTimeStamp 
 | 
{ 
 | 
  #keys: '[136398.1.783137699]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Fills the UI_DateTime field on all the KpiValue objects 
 | 
    // with the snapshots server/plan datetime (based on 'timeType'). 
 | 
    traverse( setData, SnapshotData, snapshot ) 
 | 
    { 
 | 
      timestamp := snapshot.PlanDateTime(); 
 | 
      if ( timeType = KpiSnapshotRetrieval::TimeType_Server() ) 
 | 
      { 
 | 
        timestamp := snapshot.ServerDateTime(); 
 | 
      } 
 | 
      traverse( snapshot, Value, kpi ) 
 | 
      { 
 | 
        kpi.UI_DateTime( timestamp );  
 | 
      } 
 | 
    } 
 | 
  *] 
 | 
} 
 |