Quintiq file version 2.0
#parent: #root
Method ResetSnapshotDataholder () id:Method_Kpi_frmCreateSnapshot_ResetSnapshotDataholder
{
  #keys: '[136398.1.386201322]'
  Body:
  [*
    // Creates a fresh, new SnapshotData instance for the form to act on.
    if ( not isnull( KpiTracker ) )
    {
      set := KpiTracker.KpiSnapshotSetData( relshadow );
      timezone := TimeZone::ObjectTimeZone( KpiTracker );
      snapshot := set.SnapshotData( relnew );
      snapshot.PlanDateTime( DateTime::Now().StartOfHour( timezone )  );
      snapshot.ServerDateTime( DateTime::Now() )
      this.dhSnapshotSet().Data( &set );
      this.dhSnapshot().Data( snapshot );
    }
  *]
}
