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");
        }
     
   
     
  }

Thursday, October 27, 2016


Oracle Cloud - Invoking REST Webservice (HCM Module)

Invoking REST web service Using: Advanced REST client (in chrome)

REST WebService URL : https://rws2-fapxxx-hcm.oracledemos.com/hcmCoreApi/resources/11.1.11/emps//?q=PersonNumber=715










Invoking REST  WebService using SOAP REST Client.



OAF Page Controller Flow , When Multiple CO's  are there.


Events are handled from mainRN to child RN.

Following is the log snippet for the same.


--Process Request Method
PR Method of Main Page  RN
PR Method of Shared RN



-- Process Form Request Method
PFR Method of Main Page  RN
PFR Method of Shared RN