OAF Page Deployment in R12
File deployment in OAF follows MVC framework as
·
Model: Entity Objects (EO), View Objects (VO),
Application Module (AM), View Links (VL), Association Objects (AO)
·
View (MDS i.e. needs to deploy these files in DB
server): Page (PG), Regions (RN)
·
Controller: All CO files
Types of
files available in OAF from source code point of view: .java, .xml
Application server only recognizes .class file i.e.
compiled version of .java files
.XML files -> (MDS) Metadata files
From Local
directory, we have to move .class + .xml
files to Application server at $JAVA_TOP
Location of
files in OAF development
Source Code location
|
Compiled file location
|
$JDEV_USER_HOME/myclasses
(.java, .xml files)
|
$JDEV_USER_HOME/myprojects
(.class, .xml files)
|
$JDEV_USER_HOME: Environment variable set for JDeveloper
to work.
Steps for deployment:
1.
Copy all the files from local directory to application
Server in $JAVA_TOP.
Echo $JAVA_TOP in putty, get the
path and open in Server (Winscp path).
2.
Keep the $JDEV_USER_HOME/myclasses folder at left side
in winscp and $JAVA_TOP at right side.
3.
Please ensure all the dependent files are kept in sync
to migrate in Server.
4.
Copy your folder from Local to JAVA_TOP in Binary
Format.
5.
Keep all the xxxPG.xml
files in MDS layer i.e. DB Server
then only these files will be read reason being View Layer is part of MDS
files.
6.
To Achieve above step 5, Go to jdevbin/oaext/bin folder in Jdeveloper Folder directory. Open Command
Prompt (CMD) and navigate this whole path in CMD like below.
7.
Give a command ‘Import’ from this
location Enter and copy the text from the Field: Example1 in
Notepad. Purpose of this command is to deploy your View Component i.e. page.xml
in MDS i.e. Database.
8.
Copy the Example1 text and replace with your structure
like below.
Example1: import
d:\jdeveloper\jdev\myprojects\pages\mypage.xml -rootdir d:\jdeveloper\jdev\myprojects -userId 1 -rootPackage
/oracle/apps/ak -username jdr -password jdr -dbconnection "(description =
(address_list = (address = (community = tcp.world)(protocol = tcp)(host
=incq027bc.idc.oracle.com)(port = 1521)))(connect_data = (sid = des9i2)))"
-jdk13
Import C:\A_Shobhit\Donaldson\Development\Development\OAF\p9879989_R12_GENERIC\jdevhome\jdev\myclasses\xyz\oracle\apps\fnd\webui\EmployeeInfoPG.xml
-rootdir C:\A_Shobhit\Donaldson\Development\Development\OAF\p9879989_R12_GENERIC\jdevhome\jdev\myclasses
-username apps
-password apps
-dbconnection "(description = (address_list = (address = (community =
tcp.world)(protocol = tcp)(host
= rdcdxerpdb01.donaldson.com)(port = 1521)))(connect_data = (sid = dev55)))"
Change Your instance specific information, like
-rootdir, remove userid 1 -rootpackage,
username, password, host and Sid.
Copy this
import command and run in CMD again.
This will
import your structure.
Importing
file "C:\A_Shobhit\Donaldson\Development\Development\OAF\p9879989_R12_GENERIC\jdevhome\jdev\myclasses\xyz\oracle\apps\fnd\webui\EmployeeInfoPG.xml"
as "/xyz/oracle/apps/fnd/webui/EmployeeInfoPG".
Import command
should deploy View component i.e. Page/Region in MDS or Database.
9.
Let’s verify this in DB tables if import command worked
successfully or not.
Jdr_paths, jdr_components,
jdr_attributes
SELECT *
FROM jdr_paths where path_name ='EmployeeInfoPG';--- Hold
information about Page and top Level
structure
SELECT *
FROM jdr_components where
comp_docid=179149;
-- Holds info about all the component in page
Select * from
jdr_attributes where att_comp_docid=179149; -- Hold info
about the attribute of each component.
10.
Now it’s time to register the OAF file in Oracle Application
Login in Oracle Apps à Application Developer responsibilityà Applicationà Function
Provide function
and User Function name any relevant value.
Select “SSWA
jsp function” as Type in Property Tab.
Get the OAF
Page URL by running Page from Jdeveloper or its the same string generated in
Step 8 above and deployed in DB. “/xyz/oracle/apps/fnd/webui/EmployeeInfoPG”,
Suffix it with OA.jsp?page=
OA.jsp?page=/xyz/oracle/apps/fnd/webui/EmployeeInfoPG and provide in Web HTML Tab in HTML Call.
11. Once
Function is created, its time to attach in Menu as usual oracle apps Steps. For
testing created one Test menu.
12. Assign
This Menu/Function to Responsibility and Access your New OAF Page.