Usually when we use the filter table in adf , some time it will not work and when you use the new criteria it display result of existing filter criteria so call the following method to work filters in your page
use the following method to work your filters proper
public void resetPerfectedTableFilter()
{ FilterableQueryDescriptor queryDescriptor = (FilterableQueryDescriptor) getPerfectedCaseTable().getFilterModel();
if (queryDescriptor != null && queryDescriptor.getFilterCriteria() != null)
{ queryDescriptor.getFilterCriteria().clear();
getPerfectedCaseTable().queueEvent(new QueryEvent(getPerfectedCaseTable(),
queryDescriptor));
}
}
you just need to provide is your tables binding to this method on which you are applying filters.
getPerfectedCaseTable - Table binding
use the following method to work your filters proper
public void resetPerfectedTableFilter()
{ FilterableQueryDescriptor queryDescriptor = (FilterableQueryDescriptor) getPerfectedCaseTable().getFilterModel();
if (queryDescriptor != null && queryDescriptor.getFilterCriteria() != null)
{ queryDescriptor.getFilterCriteria().clear();
getPerfectedCaseTable().queueEvent(new QueryEvent(getPerfectedCaseTable(),
queryDescriptor));
}
}
you just need to provide is your tables binding to this method on which you are applying filters.
getPerfectedCaseTable - Table binding
Comments
Post a Comment