Thursday, August 15, 2019

How to Intialize the AM & VO in OAF

public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
  {
    super.processFormRequest(pageContext, webBean);
   
      /* The below code line is used to initialize the application module */
 OAApplicationModule am=(OAApplicationModule)pageContext.getApplicationModule(webBean);
      /* The below code line is used to initialize VO*/
        OAViewObject vo=(OAViewObject)am.findViewObject("DataDisplayVO1");
      /* DataDisplayVO1 is the instance name in AM which is the original name of the VO */
      if(pageContext.getParameter("Go")!=null)
        {
             vo.setWhereClause(null);
              vo.setWhereClause("1=1");

           vo.executeQuery();
         }
       /*To clear the data form the table region */ 
      if(pageContext.getParameter("Clear")!=null)
      {
      vo.setWhereClause(null);
       vo.setWhereClause("1=2");
       vo.executeQuery();
      }
}

No comments:

Post a Comment

AME (Approval Management Engine)

AME (Approval Management Engine) : AME Stands for Oracle Approval Management Engine. AME is a self service web application that enables...