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

Need to pick up the dff values from Ship to instead of bill to through OM extension

Summary:

what changes shall i make in code to pick the values from ship to instead of bill to?


Content (required):

Object getParty(Long PartyId,Long partyidentifier) 

{

def CustAcctPVO = context.getViewObject("oracle.apps.cdm.foundation.parties.publicView.analytics.CustomerAccountPVO");

def vc = CustAcctPVO.createViewCriteria();

def vcrow = vc.createViewCriteriaRow();

//vcrow.setAttribute("PartyId", PartyId);

vcrow.setAttribute("PartyId", PartyId);

//header.setAttribute("PackingInstructions", PartyId);

def rowset = CustAcctPVO.findByViewCriteria(vc, -1);

def PartyDetails = rowset.first();

                    

def AccountID = PartyDetails.getAttribute("CustAccountId");



def CustAccountSiteView = context.getViewObject("oracle.apps.cdm.foundation.parties.publicView.customerAccounts.CustomerAccountSitePVO");

def CustACCVC = CustAccountSiteView.createViewCriteria();

def CustAccVCrow = CustACCVC.createViewCriteriaRow();

CustAccVCrow.setAttribute("CustAccountId", AccountID);


CustAccVCrow.setAttribute("PartySiteId", partyidentifier);

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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