8 Replies Latest reply: Jan 24, 2013 4:28 AM by Sushant Sharma RSS

    When iam compiling controller code, getting error

    Anill
      Hi,

      Iam new to OAF. To call the second page, i wrote the below code in controller. When iam compiling iam getting below error.

      Error(55,17): method setForwardURL(java.lang.String, null, byte, null, boolean, java.lang.String, byte) not found in interface oracle.apps.fnd.framework.webui.OAPageContext

      I have imported all classes. Please help me to solve this issue.

      Below is my code written in controller.


      import oracle.apps.fnd.common.VersionInfo;
      import oracle.apps.fnd.framework.webui.OAControllerImpl;
      import oracle.apps.fnd.framework.webui.OAPageContext;
      import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
      import oracle.apps.fnd.framework.webui.beans.OAWebBean;
      import xxanill.oracle.apps.po.euromax.server.XxmaxAMImpl;

      /**
      * Controller for ...
      */
      public class XxcustomerCO extends OAControllerImpl
      {
      public static final String RCS_ID="$Header$";
      public static final boolean RCS_ID_RECORDED =
      VersionInfo.recordClassVersion(RCS_ID, "%packagename%");

      public void processRequest(OAPageContext pageContext, OAWebBean webBean)
      {
      super.processRequest(pageContext, webBean);
      }

      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
      {
      super.processFormRequest(pageContext, webBean);
      XxmaxAMImpl am=(XxmaxAMImpl)pageContext.getApplicationModule(webBean);
      if(pageContext.getParameter("Go")!=null)
      {
      am.Xxcustomersearch(pageContext,webBean);
      am.getXxcustomerSearchVO1().executeQuery();
      }

      if(pageContext.getParameter("Createcustomrebate")!=null)
      {
      pageContext.setForwardURL("OA.jsp?page=/xxanill/oracle/apps/po/euromax/webui/XxcustomercreatepagePG",
      null,
      OAWebBeanConstants.KEEP_MENU_CONTEXT,
      null,
      true,//retain AM
      OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
      OAWebBeanConstants.IGNORE_MESSAGES);

      }

      }

      }
        • 1. Re: When iam compiling controller code, getting error
          shreevat
          Change as per below syntax and check.

          pageContext.setForwardURL("OA.jsp?page=/xxanill/oracle/apps/po/euromax/webui/XxcustomercreatepagePG",
          OAWebBeanConstants.KEEP_MENU_CONTEXT,
          null,
          null,
          true,//retain AM
          OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
          OAWebBeanConstants.IGNORE_MESSAGES);

          Thanks
          Shree
          • 2. Re: When iam compiling controller code, getting error
            Anill
            Hi Shree,

            I changed syntax as you said, code compiled successfully. When i try to call the page, below error message is showing.

            Could not find function: OA.jsp?page=/xxanill/oracle/apps/po/euromax/webui/XxcustomercreatepagePG.


            Thanks,
            Anill
            • 3. Re: When iam compiling controller code, getting error
              Yuvaraj C.
              Hi,
              Please check if the new OAF page which you are forwarding to has already been registered in Oracle Apps.
              Also check if you can call the same page [your current page], since i believe you have already registered it, at-least this call should be successful.

              Regards,
              Yuvaraj
              • 4. Re: When iam compiling controller code, getting error
                shreevat
                Check if the page XxcustomercreatepagePG is created under the path /xxanill/oracle/apps/po/euromax/webui.

                Thanks
                Shree
                • 5. Re: When iam compiling controller code, getting error
                  Anill
                  Hi Yuvaraj,

                  I checked by calling same page but same error is raising. Controller code is compiled successfully. Please help me


                  Thanks,
                  Anill

                  Edited by: Anill on Jan 24, 2013 1:52 PM
                  • 6. Re: When iam compiling controller code, getting error
                    Anill
                    Hi shree,

                    Page is created under same path. I tried to call same page but it showing same error. Please help me to solve this issue.

                    I have one doubt, could you please clarify. In document, syntax is showing as below. When i compile this, it showing error

                    pageContext.setForwardURL("OA.jsp?page=/xxanill/oracle/apps/po/euromax/webui/XxcustomercreatepagePG",
                    null,
                    OAWebBeanConstants.KEEP_MENU_CONTEXT,
                    null,
                    true,//retain AM
                    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
                    OAWebBeanConstants.IGNORE_MESSAGES);

                    As you said i changed syntax as below,it compiled successfully. What is the difference? Please Clarify me the doubt. It will be helpful for me

                    pageContext.setForwardURL("OA.jsp?page=/xxanill/oracle/apps/po/euromax/webui/XxcustomercreatepagePG",
                    OAWebBeanConstants.KEEP_MENU_CONTEXT,
                    null,
                    null,
                    true,//retain AM
                    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
                    OAWebBeanConstants.IGNORE_MESSAGES);

                    Thanks,
                    Anill
                    • 7. Re: When iam compiling controller code, getting error
                      Anill
                      Hi,

                      I solved my issue. I changed syntax as below and compiled. Page is calling successfully.

                      pageContext.setForwardURL("OA.jsp?page=/xxanill/oracle/apps/po/euromax/webui/XxcustomersearchpagePG",
                      null,
                      OAWebBeanConstants.KEEP_MENU_CONTEXT,
                      null,
                      null,
                      true,//retain AM
                      OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
                      OAWebBeanConstants.IGNORE_MESSAGES)

                      Thanks,
                      Anill
                      • 8. Re: When iam compiling controller code, getting error
                        Sushant Sharma
                        Hi,

                        Kindly close the thread if your issue is resolved :)

                        --Sushant