we will see how to call one
page from the current page in OAF. To create link between two pages we have
“pageContext.serForwardURL”.
Step 1) Create Work space and Project.
Step 2 Create AM
Step 3) Create EO based VO and attach to AM.
Step 4) Create page and attach to AM and design like below.
Step 5) Create Controller on main region and Write below code for Get Employee Information & To Create Employee Screen.
| Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
| All rights reserved. |
+===========================================================================+
| HISTORY |
+===========================================================================*/
package xxamw.oracle.apps.po.requisition.webui;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.OAViewObject;
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;
/**
* Controller for ...
*/
public class CallFormCO extends OAControllerImpl
{
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
/**
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
*/
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processRequest(pageContext, webBean);
}
/**
* 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);
if(pageContext.getParameter("GO")!=null)
{
OAApplicationModule am=(OAApplicationModule)pageContext.getApplicationModule(webBean);
OAViewObject vo=(OAViewObject)am.findViewObject("DataEntryManEOBaseVO1");
vo.executeQuery();
}
if(pageContext.getParameter("Create")!=null)
{
pageContext.setForwardURL("OA.jsp?page=/xxamw/oracle/apps/po/requisition/webui/DataEntryPG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES
);
}
}
}
No comments:
Post a Comment