Reputation: 7256
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
Reputation: 5803
This should do :
ViewObjectImpl sampleVO = this.getSample();
sampleVO.getViewCriteriaManager().removeApplyViewCriteriaName(vcName);
sampleVO.executeQuery();
Upvotes: 1
Reputation: 2025
You can do this by doing the following:
viewObject.getViewCriteriaManager().clearViewCriterias();
Upvotes: 1