| Quintiq file version 2.0 | 
| #parent: #root | 
| Method PropagateTimeStamp ( | 
|   shadow[KpiSnapshotSetData] setData, | 
|   String timeType | 
| ) id:Method_Kpi_GlobalState_PropagateTimeStamp | 
| { | 
|   #keys: '[136398.1.727584156]' | 
|   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 );  | 
|       } | 
|     } | 
|   *] | 
| } |