Sunday Apr 29, 2012

Call D2K Form from OAF Page

This blog is about to call D2K form from OAF page. We will try to implement a OAF page to Call Application Developer > Profile 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 -- prajkumar.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 -- prajkumar.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 -- prajkumar.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

prajkumar.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 -- prajkumar.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);

 if (pageContext.getParameter("Go") != null)
 {
  //form:APPLICATION_SHORT_NAME:RESPONSIBILITY_KEY:DATA_GROUP_NAME
  //:FORM_FUNCTION_NAME
  
  String destination =
   "form:FND:APPLICATION_DEVELOPER:STANDARD:FND_FNDPOMPO";
                              
  pageContext.forwardImmediatelyToForm(destination);              
 }
}

 

11. Congratulation you have successfully finished. Run Your page and Test Your Work

 

 

About

Welcome to My Oracle World Puneet Rajkumar

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today