/* * This method determines if this filter applies for a given type * * For more information see: https://documentation.decisions.com/v6/docs/custom-reporting-data-filters */ public override bool Applies(ReportDefinition definition) { //Check if the Report uses a Custom Data Source if (definition.UsesCustomDataSource()) { //Check each of the Custom Reporting Data Sources for the Report foreach (ICustomReportDataSource dataSource in definition.GetCustomDataSources()) { //Only declare this filter as relevant the Custom Data Source is the AdvancedCustomDataSource if (dataSource is AdvancedCustomDataSource) { return(true); } } } return(false); }