endryha
endryha

Reputation: 7256

Oracle ADF ViewCriteria cancel

How it is possible to cancel/reject applied ViewCriteria,

lets say I have view criteria which I want to apply to view object but later I want to reject this view criteria to make view object be displayed in it's default state.

Thank you

Upvotes: 1

Views: 377

Answers (2)

lokoko
lokoko

Reputation: 5803

This should do :

ViewObjectImpl sampleVO = this.getSample();
sampleVO.getViewCriteriaManager().removeApplyViewCriteriaName(vcName);
sampleVO.executeQuery();

Upvotes: 1

Amr Gawish
Amr Gawish

Reputation: 2025

You can do this by doing the following:

viewObject.getViewCriteriaManager().clearViewCriterias();

Upvotes: 1

Related Questions