Sunday, January 6, 2019

Oracle OAF :- Lov Dynamic Parameter



AM
====================================================

public void initPOLovVO(String orgIDStr)
{
   itemLovVOImpl vo = getItemLovVO1();
   vo.clearCache();
   vo.setWhereClause(null);
   vo.setWhereClause("org_id = "  + orgIDStr);
   vo.executeQuery();
}



Process Request
===================================

LovPageAMImpl am = (LovPageAMImpl)pageContext.getApplicationModule(webBean);
am.initPOLovVO ("-1");



Process Form Request
==============================

if (pageContext.isLovEvent())
  {
  String lovSourceIDStr = pageContext.getLovInputSourceId(); /* Get the ID of the Lov Item */  
  if (lovSourceIDStr != null && "orgNameLovID".equals(lovSourceIDStr)) /* Compire it with the required lov ID */
  {
  OAMessageLovInputBean orgNameLovIDBean = (OAMessageLovInputBean)webBean.findIndexedChildRecursive("orgNameLovID");
  String orgNameStr = (String)orgNameLovIDBean.getValue(pageContext); /* Get the Lov Item Data*/
  OAFormValueBean orgIDFVBean = (OAFormValueBean)webBean.findIndexedChildRecursive("tempOrgId");
          String orgID = (String)orgIDFVBean.getValue(pageContext); /* Get the Form Value Data*/
          am.initPOLovVO (orgID);
  } 
  }
  

No comments:

Post a Comment