Quintiq file version 2.0
#parent: PanelFrequency/DurationSelectorFrequency
Response OnChanged () id:Response_PanelFrequency_DurationSelectorFrequency_OnChanged
{
  #keys: '[146874.1.152889634]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebDateTimeFieldBase_OnChanged'
  QuillAction
  {
    Body:
    [*
      // Show the feedback warning if the frequency is not a multiple form of KpiTracker record frequency
      kpiFrequency := DurationSelectorKpiGlobalParameter.Duration();
      
      kpiFrequencyInMillis := kpiFrequency.TotalInMillis();
      recordFrequencyInMillis := DurationSelectorFrequency.Duration().TotalInMillis();
      
      value := guard( recordFrequencyInMillis mod kpiFrequencyInMillis = 0, true );
      
      // Show warning
      ImageFrequency.Visible( not value );
      ImageFrequency.Tooltip( Translations::Kpi_SnapshotGenerator_FrequencyNotAMultipleForm( kpiFrequency ) );
    *]
    GroupServerCalls: false
  }
}
