Monday, March 25, 2013

ADF 11G : How to clear the table filter Programaticaly ?

ADF 11G : How to clear the table filter Programatically ?


















public void clearFilter(ActionEvent actionEvent) {       

        FilterableQueryDescriptor qd =

                          (FilterableQueryDescriptor)t1.getFilterModel();

        if (qd != null && qd.getFilterCriteria() != null) {

          qd.getFilterCriteria().clear();

          t1.queueEvent(new QueryEvent(t1, qd));           

       }

    }