Quintiq file version 2.0 
 | 
#parent: dsFrequency 
 | 
Response OnChanged () id:Response_Kpi_pnlDaemon_dsFrequency_OnChanged 
 | 
{ 
 | 
  #keys: '[146874.1.146354486]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Show the feedback warning if the frequency is not a multiple form of KpiTracker record frequency 
 | 
    kpiFrequency := vhKpiGlobalParameterRecordFrequency.Data(); 
 | 
     
 | 
    kpiFrequencyInMillis := kpiFrequency.TotalInMillis(); 
 | 
    recordFrequencyInMillis := dsFrequency.Duration().TotalInMillis(); 
 | 
     
 | 
    value := guard( recordFrequencyInMillis mod kpiFrequencyInMillis = 0, true ); 
 | 
     
 | 
    // Show warning 
 | 
    lblWarning.Visible( not value ); 
 | 
    imgWarning.Visible( not value ); 
 | 
    imgWarningLabel.Visible( not value ); 
 | 
    lblWarning.Text( Translations::Kpi_SnapshotGenerator_FrequencyNotAMultipleForm( kpiFrequency ) ); 
 | 
  *] 
 | 
  CanBindMultiple: false 
 | 
  DefinitionID: 'Responsedef_GUIDurationSelector_OnChanged' 
 | 
} 
 |