oa-framework-tutorial-1233734243009882-2
-
Upload
saurabh-sonkusare -
Category
Documents
-
view
104 -
download
0
description
Transcript of oa-framework-tutorial-1233734243009882-2
![Page 1: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/1.jpg)
OA Framework Tutorial 01
-Bölgesel Ayarlar : İngilizce
After having received some requests from Oracle EBS newbies, I have decided to do some video tutorials to explain how screens can be built in OA Framework. For this purpose, I will build a simple case study[Person Maintenance Screen].To begin with, I will create a simple page in OA Framework, and in following sessions, I will add additional Functionality[creation/changes] to the same page.
Welcome to the first Audio-Video tutorial in this series.Objective :- To create a working page in OA Framework, without writing a single line of code in java.
Step 1 Create a table and insert sample data[3 records] for this demo.
Run script xxoafdemo01.sql from this link and create an OA Workspace and an OA Project.
Click here for Audio Video Link for Step 1
The above Step 1 will do the below:-
1. Creates a table named xx_person_details to capture Person Details
2. Create a API to help insert records in this table
3. Inserts three records into table xx_person_details
4. In jDeveloper, create an OA Workspace and default Project for this OA Framework tutorial
create table xx_person_details( PERSON_ID NUMBER NOT NULL,FIRST_NAME VARCHAR2(50),LAST_NAME VARCHAR2(50),EMAIL VARCHAR2(100),student_flag VARCHAR2(1),name_of_university VARCHAR2(100),last_update_date DATE,last_update_login INTEGER,last_updated_by INTEGER,creation_date DATE,created_by INTEGER) ;
CREATE OR REPLACE PROCEDURE xx_insert_person_prc(p_person_rec IN OUT xx_person_details%ROWTYPE) ISBEGIN SELECT per_people_s.NEXTVAL INTO p_person_rec.person_id FROM dual; p_person_rec.last_update_date := SYSDATE; p_person_rec.creation_date := SYSDATE; p_person_rec.last_update_login := -1; p_person_rec.last_updated_by := 71690; p_person_rec.created_by := 71690; INSERT INTO xx_person_details VALUES p_person_rec;END xx_insert_person_prc;/
![Page 2: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/2.jpg)
DECLARE l_person_rec xx_person_details%ROWTYPE;BEGIN l_person_rec.first_name := 'Anil'; l_person_rec.last_name := 'Passi'; l_person_rec.email := '[email protected]'; l_person_rec.student_flag := 'N'; xx_insert_person_prc(l_person_rec); l_person_rec.first_name := 'Tom'; l_person_rec.last_name := 'Kumar'; l_person_rec.email := '[email protected]'; xx_insert_person_prc(l_person_rec); l_person_rec.first_name := 'Mark'; l_person_rec.last_name := 'Kapoor'; l_person_rec.email := '[email protected]'; xx_insert_person_prc(l_person_rec); commit;END;/
SELECT count(*)FROM xx_person_details ;
commit;
New Project
Create OA Workspace..
![Page 3: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/3.jpg)
File Name : OAFsem13.jws ( Workspace name )
File Name : OAFsem13.jpr ( Project name )
Default Package : tutorial13.oracle.apps.ak.xxperson13
-Next
![Page 4: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/4.jpg)
-Next
DBC File Name : test40.dbc
User Name : ax07926
Password : erptest
![Page 5: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/5.jpg)
Application Short Name : XXRM
Responsibility Key : XXRM_R1_YEDEK_PARCA
-OK
Step 2 Create the required BC4J and java packages for this OA Framework Screen
This step will create
xxPersonDetailsEO [ Entity Object ]xxPersonDetailsVO [ View Object ]xxPersonAM [ Application Module ]
Relation between view Object and AM, in effect creating an instance of the View Object.Name of this view Object instance will be xxPersonDetailsVO1
Click here for Audio Video Link of Step 2 Add Business Components
![Page 6: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/6.jpg)
OAFsem13.jpr -> Right-> New Business Components Package
-Next
![Page 7: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/7.jpg)
-Next
-Bitir
![Page 8: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/8.jpg)
-Tamam
Tutorial13.oracle.apps.ak.xxperson13.schema.server
Business component created
Create New Business Component
![Page 9: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/9.jpg)
OAFsem13.jpr -> Right ->New Business Components Package
-İleri
![Page 10: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/10.jpg)
-Bitir
Tutorial13.oracle.apps.ak.xxperson13.server
Business component created..
![Page 11: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/11.jpg)
Create New Business Component
OAFsem13.jpr -> New Business Components Package
-Next
![Page 12: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/12.jpg)
-Bitir
Tutorial13.oracle.apps.ak.xxperson13.webui
Business component created..
![Page 13: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/13.jpg)
Create Entity Object
Tutorial13.oracle.apps.ak.xxperson13.schema.server -> Right -> New Entity Object...
-İleri
![Page 14: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/14.jpg)
Name : XXPersonDetailsEO
Package : tutorial13.oracle.apps.ak.xxperson13.schema.server
Schema Object : XX_PERSON_DETAILS_S
-ileri
-İleri
![Page 15: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/15.jpg)
-İleri
-Yes
![Page 16: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/16.jpg)
Validation Method Create Method
-İleri
-İleri
![Page 17: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/17.jpg)
-Bitir
Entity Object Created..
Create View Object..
![Page 18: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/18.jpg)
XXPersonDetailsEO -> Right -> New Default View Object
View Object Created
XXPersonDetailsEOView -> Right -> Move package
![Page 19: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/19.jpg)
Tutorial13.oracle.apps.ak.xxperson13.server
XXPersonDetailsEOView moved to tutorial13.oracle.apps.ak.xxperson13.server
![Page 20: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/20.jpg)
XXPersonDetailsEOView -> Right -> Rename XXPersonDetailsEOView
View Object name changed..
Create Application Module
Tutorial13.oracle.apps.ak.xxperson13.server -> Right -> New Application Module
![Page 21: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/21.jpg)
-Next
Name : XXPersonAM
-Next
![Page 22: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/22.jpg)
-Next
-Next
![Page 23: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/23.jpg)
-Next
-Bitir
![Page 24: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/24.jpg)
Application Module Created
OAFsem13.jpr -> Right -> New
![Page 25: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/25.jpg)
OA Components -> Page
Tamam
Name : XXPersonMainPG
Package : tutorial13.oracle.apps.ak.xxperson13.webui
Tamam
XXPersonMainPG created
region1 -> Properties
ID : MainRN
AM definition :tutorial13.oracle.apps.ak.xxperson13.server.XXPersonAM
Window Title : Main Person Page for Search
Title : Main Person Page for Search
![Page 26: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/26.jpg)
-Save
MainRN -> New -> Region
region1 created..
region1 properties
ID : QueryRN
Region Style : query
Construction Mode : resultBasedSearch
Include Simple Panel : True
![Page 27: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/27.jpg)
Include Views Panel : True
Include Advanced : True
QueryRN -> Right -> New -> Region Using Wizard
-İleri
![Page 28: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/28.jpg)
Region Style : table
PersonId – FirstName – LastName – Email selected...
-İleri
![Page 29: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/29.jpg)
Style : messageStyled
-İleri
-Bitir
![Page 30: oa-framework-tutorial-1233734243009882-2](https://reader035.fdocuments.us/reader035/viewer/2022062614/546735b3b4af9f0f1d8b49a7/html5/thumbnails/30.jpg)
QueryRN table created..
Personld Properties
Search Allowed : True
Sort Allowed : ascending
FirstName Properties
Search Allowed : True
LastName Properties
Search Allowed : True
-Save
-Rebuild the Project
-Run the Page