if (groupByProperty != null) {
// When the table is grouped then get the interval selected.
Interval selectedInterval = (Interval) dataSetTable.getDataSet().getValueAt(rowIndex, 0);
if (dashboard.filter(selectedProperty.getPropertyId(), selectedInterval, FilterByCriteria.ALLOW_ANY)) {
// If drill-down then force the whole screen to be refreshed.
return new ShowCurrentScreenResponse();
}
} else {
Object selectedValue = dataSetTable.getValueAt(rowIndex, columnIndex);
Collection values = new ArrayList();
values.add(selectedValue);
if (dashboard.filter(selectedProperty.getPropertyId(), null, false, null, false, values, FilterByCriteria.ALLOW_ANY)) {
// If drill-down then force the whole screen to be refreshed.
return new ShowCurrentScreenResponse();
}
}
return null;
}