Unable to use ensureCriteriaItem
Summary:
Unable to use ensureCriteriaItem for PublicViewObjects in OM extensions
Content (please ensure you mask any confidential information):
Hello Experts,
When calling PVOs, expectation is to filter out records based on fields with certain values we were trying to use the ensureCriteriaItem() the OM extension compliers are not identifying the functions?
def vo = context.getViewObject("oracle.apps.scm.doo.publicView.analytics.HeaderPVO");
def vc = vo.createViewCriteria();
def vcrow = vc.createViewCriteriaRow();
vcrow.setAttribute("CustomerPoNumber", customerPONumber);
vcrow.setAttribute("SoldToPartyId", buyingPartyIdentifier);
vc.add(vcrow);
def rowset = vo.findByViewCriteria(vc, -1);
Set orderNumbers = new HashSet<Long>();
Set status = new HashSet<String>();
while(rowset.hasNext()){