Friday, October 28, 2016

OAF - Set FireAction for DropDown Dynamically



  public void processRequest(OAPageContext pageContext, OAWebBean webBean)
  {
    super.processRequest(pageContext, webBean);
   
      super.processRequest(pageContext, webBean);
      AMCGBizzSericesAMImpl am = (AMCGBizzSericesAMImpl)pageContext.getApplicationModule(webBean);
      am.initEmpEOVO();
     
      System.out.println("PR Method of Main page RN");
     
      OAMessageChoiceBean deptPopIDBean = (OAMessageChoiceBean)webBean.findIndexedChildRecursive("deptPopID");
      deptPopIDBean.setFireActionForSubmit("DeptPop_EVENT",null,null,true);
  }

  /**
   * Procedure to handle form submissions for form elements in
   * a region.
   * @param pageContext the current OA page context
   * @param webBean the web bean corresponding to the region
   */
  public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
  {
    super.processFormRequest(pageContext, webBean);
   
      System.out.println("PFR Method of Main Page  RN");
     
      String eventParam = pageContext.getParameter(EVENT_PARAM);
       if(eventParam!=null && "DeptPop_EVENT".equals(eventParam))
        {
         throw new OAException("User Clicked on PopEvent");
        }
     
   
     
  }
Post a Comment