Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Clearing an adf filter and to reset the VO.

BandanaAug 18 2011 — edited Aug 19 2011
Hi ,

I am using Oracle JDeveloper version 11.1.1.2.0.
I have added the block of codes to clear the filter . I am then clicking the button upon which the metod is called to clear the filter.But when i am again coming to that page the filter area is cleared but the VO is not reset to previous state as it was before the query in filter was performed . And my query descripter is pointing to null as well.

Here is the part of code I wrote in managed bean to clear the filter:::::>

if(getBatchesTab()!=null){
FilterableQueryDescriptor queryDescriptor =
(FilterableQueryDescriptor)getBatchesTab().getFilterModel();
if (queryDescriptor != null &&
queryDescriptor.getFilterCriteria() != null) {
queryDescriptor.getFilterCriteria().clear();
getBatchesTab().queueEvent(new QueryEvent(getBatchesTab(),
queryDescriptor));

}
}
else{
String message = "Have some problem in Clearing Filters. please try later";
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(message));
}



and this part of code i wrote in a method in application module which is called by the managed bean.::::::>

ViewObjectImpl clearVO= this.getresetVOAfterExec();
clearVO.clearCache();


Kindly help me in this regard to reset the VO to previous state.

Edited by: 880139 on Aug 18, 2011 6:23 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 16 2011
Added on Aug 18 2011
2 comments
923 views