如何取消/拒绝应用的 ViewCriteria,
假设我有要应用于视图对象的视图标准,但稍后我想拒绝此视图标准以使视图对象以默认状态显示。
谢谢
You can do this by doing the following:
viewObject.getViewCriteriaManager().clearViewCriterias();
这应该这样做:
ViewObjectImpl sampleVO = this.getSample();
sampleVO.getViewCriteriaManager().removeApplyViewCriteriaName(vcName);
sampleVO.executeQuery();