2 Replies Latest reply: Apr 23, 2012 1:49 AM by Gyan Darpan RSS

    Unable to pass parameter from one OAF page to other OAF page (custom region

    745071
      Hi Friends,
      Please update regarding issue as early as possible.
      Waiting for your valuable reply's.

      Our requirement is to embed a custom page in OAF standard page.
      The designing part is done. But I am unable to get the data in this region.

      I am able to print the primary key in the main page.
      But Unable to pass the primary key value to other custom region
      so no data is displaying there.

      The code is as follow:

      The first page coding where we are getting the value is as shown below

      package lf.oracle.apps.qot.quote.header.webui;
      import oracle.apps.fnd.framework.OAViewObject;
      import oracle.apps.fnd.framework.webui.OAPageContext;
      import oracle.apps.fnd.framework.webui.beans.OAWebBean;
      import oracle.apps.qot.quote.header.server.QotQuoteDetailsAMImpl;
      import oracle.apps.qot.quote.header.webui.QotQuoteDetailsCO;
      import oracle.jbo.Row;
      import oracle.jbo.domain.Number;
      public class LFApprovalCO extends QotQuoteDetailsCO
      {
      public void processRequest(OAPageContext pageContext, OAWebBean webBean)
      {
      super.processRequest(pageContext, webBean);
      QotQuoteDetailsAMImpl am = (QotQuoteDetailsAMImpl)pageContext.getApplicationModule(webBean);
      OAViewObject vo = (OAViewObject)am.findViewObject("QuoteHeadersLevel100VOObj");
      Number quoteheaderid = (Number)vo.getCurrentRow().getAttribute("QuoteHeaderId");
      pageContext.putTransactionValue("xxt", quoteheaderid);
      pageContext.putTransactionTransientValue("lfqotapp", quoteheaderid);
      pageContext.writeDiagnostics(this, "Value for QuoteHeaderId 5" + quoteheaderid, 1);
      }
      }


      From this page we are able to print thevalue of "QuoteHeadeId"


      In the second page unable to get the value. We are using the following java code in the second page:



      package lf.oracle.apps.qot.quote.header.webui;
      import java.io.Serializable;
      import oracle.apps.fnd.common.VersionInfo;
      import oracle.apps.fnd.framework.OAApplicationModule;
      import oracle.apps.fnd.framework.webui.OAControllerImpl;
      import oracle.apps.fnd.framework.webui.OAPageContext;
      import oracle.apps.fnd.framework.webui.beans.OAWebBean;
      import oracle.jbo.domain.Number;
      public class LFQuoteApprovalHeaderCO extends OAControllerImpl
      {
      public static final String RCS_ID = "$Header$";
      public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header$", "%packagename%");
      public void processRequest(OAPageContext pageContext, OAWebBean webBean)
      {
      super.processRequest(pageContext, webBean);
      String quoteheaderid = (String)pageContext.getTransactionTransientValue("lfqotapp");
      Number quoteheaderid1 = (Number)pageContext.getTransactionTransientValue("lfqotapp");
      Number Quoteheaderid2 = (Number)pageContext.getTransactionValue("xxt");
      pageContext.writeDiagnostics(this, "Value for QuoteHeaderId 5" + quoteheaderid, 1);
      pageContext.writeDiagnostics(this, "Value for QuoteHeaderId 6" + quoteheaderid1, 1);
      pageContext.writeDiagnostics(this, "Value for QuoteHeaderId 7" + Quoteheaderid2, 1);
      OAApplicationModule am = pageContext.getApplicationModule(webBean);
      pageContext.writeDiagnostics(this, "Value for QuoteHeaderId am1" + am, 2);
      Serializable[] header_param = { quoteheaderid };
      }
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
      {
      super.processFormRequest(pageContext, webBean);
      }
      }

      Thanks
      Pradeep