This blog is about to call D2K form from OAF page. We will try to implement a OAF page to Call Order Management > Add Customers Form by clicking Go Button
1. Create a New OA Workspace and Empty OA Project
File> New > General> Workspace Configured for Oracle Applications
File Name -- CallformfromOAF
Project Name – Calld2kformfromOAF
Default Package -- call.oracle.apps.fnd.Calld2kformfromOAF
2. Set Run Options in OA Project Setting
Select Your Project in the Navigator and choose Project Properties
Select Oracle Applications > Run Options
Select OADeveloperMode and OADiagnostic, and move them to selected Options List
3. Create Application Module AM
Calld2kformfromOAF right click > New > ADF Business Components > Application Module
Name -- Calld2kformfromOAFAM
Package -- call.oracle.apps.fnd.Calld2kformfromOAF.server
Check Generate JavaFile(s)
4. Create a OA components Page
Calld2kformfromOAF right click > New > OA Components > Page
Name -- Calld2kformfromOAFPG
Package -- call.oracle.apps.fnd.Calld2kformfromOAF.webui
5. Modify the Page Layout (Top-level) Region
Attribute
|
Property
|
ID
|
PageLayoutRN
|
Region Style
|
pageLayout
|
Form Property
|
True
|
Auto Footer
|
True
|
Window Title
|
Call D2K from OAF Page Window Title
|
Title
|
Call D2K from OAF Page Header
|
AM Definition
|
call.oracle.apps.fnd.Calld2kformfromOAF.server. Calld2kformfromOAFAM
|
6. Create the Second Region (Main Content Region)
Select PageLayoutRN right click > New > Region
Attribute
|
Property
|
ID
|
MainRN
|
Region Style
|
messageComponentLayout
|
7. Create a container Region for Go-Button
Select MainRN right click > New > messageLayout
Attribute
|
Property
|
Region
|
ButtonLayout
|
8. Create a Second Item (Go Button)
Select ButtonLayout > New > Item
Attribute
|
Property
|
ID
|
Go
|
Item Style
|
submitButton
|
Attribute Set
|
/oracle/apps/fnd/attributesets/Buttons/Go
|
9. Add a Controller
Select MainRN right click > Set New Controller
Package Name -- call.oracle.apps.fnd.Calld2kformfromOAF.webui
Class Name -- Calld2kformfromOAFCO
10. Edit Your Controller
Add Following Code in processFormRequest
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processFormRequest(pageContext, webBean);
{
super.processFormRequest(pageContext, webBean);
if (pageContext.getParameter("Go") != null)
{
//form:APPLICATION_SHORT_NAME:RESPONSIBILITY_KEY:DATA_GROUP_NAME
//:FORM_FUNCTION_NAME
{
//form:APPLICATION_SHORT_NAME:RESPONSIBILITY_KEY:DATA_GROUP_NAME
//:FORM_FUNCTION_NAME
String destination =
"form:ONT:ORDER_MGNT_SUPER_USER:STANDARD:ONT_OEXOEINL";
pageContext.forwardImmediatelyToForm(destination);
}
}
11. Congratulation you have successfully finished. Run Your page and Test Your Work
a
Enter userid and pwd
select your Responsibility
Requested D2K Form
END
No comments:
Post a Comment