Oa Framework Tutorial

24,212 views
23,826 views

Published on

Published in: Technology, Business
6 Comments
17 Likes
Statistics
Notes
No Downloads
Views
Total views
24,212
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1,966
Comments
6
Likes
17
Embeds 0
No embeds

No notes for slide

Oa Framework Tutorial

  1. 1. 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) IS BEGIN 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; /
  2. 2. 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 := 'passi.anil@gmail.com'; 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 := 'tom.kumar@gmail.com'; xx_insert_person_prc(l_person_rec); l_person_rec.first_name := 'Mark'; l_person_rec.last_name := 'Kapoor'; l_person_rec.email := 'tom.kumar@gmail.com'; xx_insert_person_prc(l_person_rec); commit; END; / SELECT count(*) FROM xx_person_details ; commit; New Project Create OA Workspace..
  3. 3. File Name : OAFsem13.jws ( Workspace name ) File Name : OAFsem13.jpr ( Project name ) Default Package : tutorial13.oracle.apps.ak.xxperson13 -Next
  4. 4. -Next DBC File Name : test40.dbc User Name : ax07926 Password : erptest
  5. 5. 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
  6. 6. Add Business Components OAFsem13.jpr -> Right-> New Business Components Package -Next
  7. 7. -Next -Bitir
  8. 8. -Tamam Tutorial13.oracle.apps.ak.xxperson13.schema.server Business component created
  9. 9. Create New Business Component OAFsem13.jpr -> Right ->New Business Components Package -İleri
  10. 10. -Bitir Tutorial13.oracle.apps.ak.xxperson13.server Business component created..
  11. 11. Create New Business Component OAFsem13.jpr -> New Business Components Package -Next
  12. 12. -Bitir Tutorial13.oracle.apps.ak.xxperson13.webui Business component created..
  13. 13. Create Entity Object Tutorial13.oracle.apps.ak.xxperson13.schema.server -> Right -> New Entity Object... -İleri
  14. 14. Name : XXPersonDetailsEO Package : tutorial13.oracle.apps.ak.xxperson13.schema.server Schema Object : XX_PERSON_DETAILS_S -ileri
  15. 15. -İleri -İleri -Yes
  16. 16. Validation Method Create Method -İleri -İleri
  17. 17. -Bitir Entity Object Created..
  18. 18. Create View Object.. XXPersonDetailsEO -> Right -> New Default View Object View Object Created XXPersonDetailsEOView -> Right -> Move package
  19. 19. Tutorial13.oracle.apps.ak.xxperson13.server XXPersonDetailsEOView moved to tutorial13.oracle.apps.ak.xxperson13.server
  20. 20. XXPersonDetailsEOView -> Right -> Rename XXPersonDetailsEOView View Object name changed.. Create Application Module Tutorial13.oracle.apps.ak.xxperson13.server -> Right -> New Application Module
  21. 21. -Next Name : XXPersonAM -Next
  22. 22. -Next -Next
  23. 23. -Next -Bitir
  24. 24. Application Module Created OAFsem13.jpr -> Right -> New
  25. 25. 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
  26. 26. Title : Main Person Page for Search -Save MainRN -> New -> Region region1 created.. region1 properties ID : QueryRN Region Style : query Construction Mode : resultBasedSearch Include Simple Panel : True
  27. 27. Include Views Panel : True Include Advanced : True QueryRN -> Right -> New -> Region Using Wizard -İleri
  28. 28. Region Style : table PersonId – FirstName – LastName – Email selected... -İleri
  29. 29. Style : messageStyled -İleri -Bitir
  30. 30. 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

×