Below code demonstrates the necessary steps for using the criteria with a IN clause
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);
Download the complete example here.
public void setValueMinCardinality(int card)
ReplyDeleteFor internal use only. Application developers should not use this
*** For internal framework use in ADS only ***
There must be another way...