OAF StepbyStepGuide
OAF StepbyStepGuide
9. Set the Window Title and Title property of PageLaout region to Create Page
10. use the Wizard to create a Form with Region Style as ‘header’
a. New
b. Save
c. Cancel
12. Add a controller to the EmployeeCreatePGPageLaout region
a. Name :EmployeeCreateCO
13. Add the following code to demonstrate the Submit button handling
public void processFormRequest(OAPageContext pageContext, OAWebBean
webBean)
{
super.processFormRequest(pageContext, webBean);
if(pageContext.getParameter("New")!=null){
System.out.println("New Button Pressed");
}
}
14. Add the following method to the AM EmployeeCreateAM
import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
17. Controller
if(pageContext.getParameter("New")!=null){
System.out.println("New Button Pressed");
am.invokeMethod("createButtonMethod");
}
if(pageContext.getParameter("Save")!=null){
System.out.println("Save Button Pressed");
am.invokeMethod("saveMethod");
}
21.Right click on the LOV region to create a table using the Wizard – Select the
EmployeesNewVO and add the Columns – LastName , Email and EmployeeId
23.make manager id Field on the Page as MessageLovInput and Associate the LOV
region we created as an External LOV region
oracle.apps.ak.employeecreate.webui
Add a Query region to the Page . and Set the following attributes as shown
26. Create a Column in EmployeSearchPG with type as Image name
updateicon_enabled.gif
Destination URI :
OA.jsp?page=/oracle/apps/ak/employeecreate/webui/
UpdateEmployeePG&retainAM=Y&EMP_ID={$EmployeeId}
oracle.apps.ak.employeecreate.webui
}
import oracle.apps.fnd.framework.OAApplicationModule;
30.Add the following piece of code to processFormRequest method of the
UpdateEmployeeCO
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if(pageContext.getParameter("Update")!=null){
am.invokeMethod("updateMethod");
pageContext.setForwardURL("OA.jsp?page=/oracle/apps/ak/employeecreate/
webui/EmployeeSearchPG",null,OAWebBeanConstants.KEEP_MENU_CONTEXT
,null,null,true,OAWebBeanConstants.ADD_BREAD_CRUMB_YES,OAWebBea
nConstants.IGNORE_MESSAGES);
}
}
Day 5
pageContext.setForwardURL(
"OA.jsp?page=/oracle/apps/ak/employeecreate/webui/EmployeeSearchPG"
,null // functionName
,OAWebBeanConstants.KEEP_MENU_CONTEXT // menuContextAction
,null // menuName
,null // parameters
,true // retainAM
,OAWebBeanConstants.ADD_BREAD_CRUMB_YES // addBreadCrumb
,OAWebBeanConstants.IGNORE_MESSAGES // messagingLevel
);
Name :EmployeesSearchCO