Quintiq file version 2.0
#parent: #root
Method QueryDataFromServer (
  Number top
) id:Method_Kpi_frmKpiSnapshots_QueryDataFromServer
{
  #keys: '[136398.1.499869571]'
  Body:
  [*
    // Queries the KpiTracker dataset for the last <top> snapshots.
    
    set := Kpi_GlobalState.QueryDataFromServer( top,
                                                rbgTimespan.BoundValue(),
                                                dtFrom.DateTime(),
                                                dtTo.DateTime() );
    
    this.dhQueryResult().Data( &set );
    
    // Refresh timestamp
    Form.RefreshUITimeStampAttribute();
    
    // Refresh label
    Form.RefreshUILabelAttribute();
    
    // Refresh UI_IsLast attribute
    Form.RefreshUIIsLastAttribute();
                                              
    Form.SetAutoSelectTimer();
  *]
}
