You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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()){

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!