Quintiq file version 2.0
#parent: #root
Method QueryDataFromServer (
  Number top
) id:Method_Kpi_frmKpiQueryTrack_QueryDataFromServer_665
{
  #keys: '[146874.0.1477861325]'
  Body:
  [*
    // Queries the KpiTracker dataset for the last <top> snapshots.
    
    set := Kpi_GlobalState.QueryDataFromServer( top,
                                                dhTimespan.Data(),
                                                dhDateTimeFrom.Data(),
                                                dhDateTimeTo.Data() );
    this.dhQueryResult().Data( &set );
    
    Form.RefreshUITimeStampAttribute();
    Form.RefreshUILabelAttribute();
    Form.RefreshUIIsLastAttribute();
    Form.FilterDataOnSelectedLabels();
    Form.FilterDataOnSelectedKpis();
    
    Form.SetAutoSelectTimer();
  *]
}
