Set Multi Org Access controls from OAF Controller:
In R12 we have to set ORG_ID to use view objects in VO.
In Your controller just paste below code to set MO:
OAApplicationModule AM = pageContext.getApplicationModule(webBean);
OADBTransactionImpl trx = (OADBTransactionImpl)AM.getOADBTransaction();
AM.getOADBTransaction().setMultiOrgAccess(String.valueOf(trx.getOrgId()),String.valueOf(trx.getSecurityProfileId()),trx.getApplicationShortName());
AM.getOADBTransaction().setMultiOrgPolicyContext("M", AM.getOADBTransaction().getOrgId());
No comments:
Post a Comment