ViewCriteria : ViewCriteriaItem -> In XML / Java
In XML
In JAVA
ViewObject vo = am.findViewObject("Employees");
ViewCriteria vc = vo.createViewCriteria();
ViewCriteriaRow vcr = vc.createViewCriteriaRow();
ViewCriteriaItem vci =vcr.ensureCriteriaItem("EmployeeId");
vci.setOperator(JboCompOper.OPER_IN);
vci.setValueMinCardinality(3);
vci.setValueMaxCardinality(3);
vci.setValue(0, 101);
vci.setValue(1, 102);
vci.setValue(2, 103);
vc.addRow(vcr);
vo.applyViewCriteria(vc);
No comments:
Post a Comment