package oracle.apps.ak.test.EOPackage.webui;
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.beans.OAWebBean;
import oracle.apps.fnd.framework.OAApplicationModule;
import java.io.Serializable;
/**
* Controller for ...
*/
public class EmpolyeeController 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);
OAApplicationModule
am = pageContext.getApplicationModule(webBean);
String userId =
pageContext.getParameter("EmployeeID");
String userName =
pageContext.getParameter("EmployeeName");
String
userDesignation = pageContext.getParameter("EmployeeDesignation");
String
userDepartment = pageContext.getParameter("EmployeeDepartment");
String userDivision
= pageContext.getParameter("EmployeeDivision");
String userLocation
= pageContext.getParameter("EmployeeLocation");
Serializable[]
params={userId,userName,userDesignation,userDepartment,userDivision,userLocation};
am.invokeMethod("OurInsertMethod",params);
}
/**
* 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);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
am.invokeMethod("saveDataToSimpleTable") ;
}
}
No comments:
Post a Comment