if (staticProps != null) results.addAll(Arrays.asList(staticProps));
// Dynamic properties.
Iterator it = getDashboard().getDataProviders().iterator();
while (it.hasNext()) {
DataProvider dataProvider = (DataProvider) it.next();
DataProperty[] allProperties = dataProvider.getDataSet().getProperties();
for (int i = 0; i < allProperties.length; i++) {
DataProperty property = allProperties[i];
DashboardFilterProperty prop = getDashboardFilterPropertyForCurrentFilter(dataProvider.getCode(), property.getPropertyId());
if (prop == null) prop = new DashboardFilterProperty(dataProvider.getCode(), property.getPropertyId(), getFilter() ,null, false);
results.add(prop);
}
}
} catch (Exception e) {
log.error("Cannot get data provider results.", e);