How to create Custom search page in OAF

How to create Custom search page in OAF

--===============================================

      OAApplicationModule am = pageContext.getApplicationModule(webBean);
      if (pageContext.getParameter("Go") != null)
       {
           String V_EMP_NUMBER = pageContext.getParameter("EMP_NUMBER");
            Serializable[] parameters = {V_EMP_NUMBER };
            am.invokeMethod("SHOW_DATA", parameters);                 
       
           String message = "You Passed Employee Number, " + V_EMP_NUMBER + "!";
           throw new OAException(message, OAException.INFORMATION);
     
               
       }
 
 
       // MK code to create the method in AM //
    public void SHOW_DATA(String emp_number)
      {
       OAViewObject VO1 = (OAViewObject)getCust_Search_VO1();
       getCust_Search_VO1().setWhereClause("EMPLOYEE_NUMBER like '" +emp_number+"%'");
      //getlovresultVO1().setWhereClause("EMPLOYEE_NUMBER = '" +emp_number+"'");
       VO1.executeQuery();
      }

Comments

Popular posts from this blog

E-Text Report In Fusion | Types of E-Text reports

Supplier API's

How to pass default Parameter in cursor