Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method CheckActiveDataset () as Boolean id:Method_GlobalStateKpiTracker_CheckActiveDataset 
 | 
{ 
 | 
  #keys: '[136398.1.783147743]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Checks to make sure a KpiTracker dataset is selected (and loaded) and will set the  
 | 
    // FeedbackObject message and return false if there isn't one. 
 | 
    if ( not FeedbackObject::CheckHard( not isnull( KpiTracker ) ) ) 
 | 
    { 
 | 
      FeedbackObject::AddHard( Translations::Kpi_NoDatasetSelected() ); 
 | 
    }  
 | 
    else if ( not FeedbackObject::CheckHard( KpiTracker.IsInitialized() ) ) 
 | 
    { 
 | 
      FeedbackObject::AddHard( Translations::Kpi_DatasetNotInitialized() ); 
 | 
    } 
 | 
     
 | 
    return FeedbackObject::IsAllowed(); 
 | 
  *] 
 | 
} 
 |