Dashboard dashboard = DashboardHandler.lookup().getCurrentDashboard();
Object selectedValue = dataSetTable.getValueAt(rowIndex, columnIndex);
if (selectedValue instanceof Interval) {
if (dashboard.filter(selectedProperty.getPropertyId(), (Interval) selectedValue, FilterByCriteria.ALLOW_ANY)) {
// If drill-down then force the whole screen to be refreshed.
return new ShowCurrentScreenResponse();
}
} else {
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;
}