没有合适的资源?快使用搜索试试~ 我知道了~
首页OracleEBS11i-OAF开发笔记
ORACLE EBS11i —OAF开发笔记 Author: Jarwang(王重东) Create Date: July 12, 2009 Update Date: Control No: Current Edition: 1.0 声明:本文可以任意免费转载、复制、传播。但您务必保持其完整性! If you copy this document,you ought to keep the document completely.
资源详情
资源评论
资源推荐
Author:JarWang (王重东) QQ:jarwang@sina.com Copyright(R):Jarwang
1
ORACLE EBS11i
—
OAF开发笔记
Author: Jarwang(王重东)
Create Date: July 12, 2009
Update Date:
Control No:
Current Edition: 1.0
声明:本文可以任意免费转载、复制、传播。但您务必保持其完整性!
If you copy this document,you ought to keep the document completely.
Author:JarWang (王重东) QQ:jarwang@sina.com Copyright(R):Jarwang
2
Document Control
Modify Record
日期 作者 版本 更改参考
July 12, 2009
jarwang 1.0
Approved
姓名 职位 签字
Distribute
编码 姓名 地点和位置
1
2
3
4
Author:JarWang (王重东) QQ:jarwang@sina.com Copyright(R):Jarwang
3
Content
Document Control.............................................................................................................. 2
Modify Record............................................................................................................. 2
Approved ...................................................................................................................... 2
Content............................................................................................................................... 3
Preface................................................................................................................................7
Getting Start....................................................................................................................... 8
Download Jdeveloper ................................................................................................ 8
Configure Jdeveloper ................................................................................................. 8
Configure EBS—OAF Environment................................................................................ 8
Verify EBS—OAF Environment .................................................................................... 11
OAF—Hello! ............................................................................................................. 12
Create OA Project ........................................................................................................... 12
Set Run Options in OA Project Settings........................................................................ 13
Create the OA Components Page File........................................................................... 14
Create the Second Region (Main Content Region)....................................................... 15
Create the First Item (Empty Field)............................................................................... 16
Create a Container Region for the Go Button............................................................... 16
Create the Second Item (Go Button).............................................................................. 17
Run Your Page Using the Run Option.......................................................................... 17
Add a Controller............................................................................................................. 17
Run OAF ......................................................................................................................... 18
Deploy OAF .............................................................................................................. 18
OAF Concept ................................................................................................................... 21
OAF & ADF .............................................................................................................. 21
OAF Objects Concept............................................................................................... 22
OAF Objects Naming ............................................................................................... 22
JSR227........................................................................................................................ 23
OAF Develop(一)Search ............................................................................................ 24
Create OAF Workspace ........................................................................................... 24
Create OAF Project................................................................................................... 24
Create Business Components Packages(UI)...................................................... 24
Create Business Components Packages(BL) ..................................................... 25
Create DB Table........................................................................................................ 26
Create Entity Objects................................................................................................ 27
Entity Associations (Association Objects) .............................................................. 29
View Objects and View Rows.................................................................................. 30
Application Modules................................................................................................ 32
Creating New Application Modules ............................................................................. 32
Edit Application Modules.............................................................................................. 33
Adding View Objects ..................................................................................................... 34
Create Initial Page .................................................................................................... 35
Create Business Components Packages(WebUI)..................................................... 35
Create EmpSearchPG ..................................................................................................... 35
Add a Icon....................................................................................................................... 36
Create page indicate text................................................................................................ 37
Config Query Page(Default).................................................................................... 37
Add Query Bean into Page ............................................................................................ 37
Add Query Table into QueryRN................................................................................... 38
Setup & Verify ................................................................................................................ 39
Setup & Verify EmpNum Properties ............................................................................ 39
Setup & Verify EmpName Properties........................................................................... 40
Setup & Verify Position Properties................................................................................ 40
Setup & Verify ManagerName Properties.................................................................... 40
Run Test........................................................................................................................... 40
Config LOV Query Page-Part1................................................................................ 40
Modify Query Bean “autoCustomizationCriteria” ...................................................... 41
Author:JarWang (王重东) QQ:jarwang@sina.com Copyright(R):Jarwang
4
Add a Simple SearchPanel............................................................................................. 41
Create “Employee Name” Item Query ......................................................................... 41
Create “Employee Number” Item Query ..................................................................... 42
Create “Employee Name” & “Employee Number” mapped table............................. 42
Run Test........................................................................................................................... 43
Config LOV Query-Part2 ......................................................................................... 43
Create BC4J Package(LOV) ............................................................................................ 43
Create Public LOV AM .................................................................................................. 43
Create LOV VO............................................................................................................... 44
Register “EmployeeNamesVO”..................................................................................... 45
Create “EmployeesLovRN” Share LOV Area............................................................... 45
Setup LOV Source Table ................................................................................................ 46
Setup LOV Into Employee Name.................................................................................. 47
Define LOV Mapping..................................................................................................... 47
Run Test........................................................................................................................... 48
Deploy OAF .............................................................................................................. 48
OAF Develop(二)Drilldown to Detail Page ............................................................. 51
Create the Details Page View Object....................................................................... 51
Create the EmployeeDetailVO View Object ................................................................. 51
Add Your View Object to the Root UI Application Module ....................................... 53
Create the Details Page UI ....................................................................................... 54
Create the EmpDetailsPG Page...................................................................................... 54
Modify the pageLayout Region..................................................................................... 54
Add a Product Branding Image..................................................................................... 54
Create the Main Content Region ................................................................................... 55
Finish Setting MainRN Item Properties ........................................................................ 56
Change the Main Region's Style .................................................................................... 57
Add a “Return to Employee Search” Link.................................................................... 57
Implement the VO Query ........................................................................................ 57
Add an initQuery( ) Method to Your EmployeeFullVOImpl Class............................ 57
Add an initDetails( ) Method to Your EmployeeAMImpl Class................................. 58
Implement the Drilldown to the EmpDetailPG ..................................................... 59
Configure the EmployeeName Item as a Link ............................................................. 59
Create a Controller for the Details Page........................................................................ 59
Add Controller Logic to Initalize the Employee Query When the Page Renders...... 59
Programmatically Set the Page Title Text ..................................................................... 60
Run test............................................................................................................................ 61
OAF Develop(三)Create Page-Part1 ......................................................................... 62
Build the Create Page............................................................................................... 62
Create the EmployeePG Page ........................................................................................ 62
Add a Product Branding Image..................................................................................... 62
Add Page-Level Apply and Cancel Buttons................................................................. 62
Create the Main Content Region ................................................................................... 63
Finish Setting MainRN Item Properties ........................................................................ 65
Add an "Indicates Required Field" Region ................................................................... 67
Implement the Positions Poplist.............................................................................. 67
Create a Poplist View Object BC4J Package.................................................................. 68
Create the PositionsVO in the Poplist BC4J Package ................................................... 68
Add the PositionsVO to the EmployeeAM................................................................... 68
Set the Properties of the Position Poplist ...................................................................... 68
Convert the MainRN Style from defaultSingleColumn to messageComponentLayout
.......................................................................................................................................... 69
Test Run........................................................................................................................... 69
Implement Row Initialization (Create a View Object Row).................................. 69
Add a createEmployee( ) Method to Your EmployeeAMImpl Class ......................... 69
Implement the Apply Button Handling.................................................................. 70
Create Your EmployeeCreateCO Controller ................................................................ 70
Add the Create Page Initialization to Your Controller ................................................ 70
Add Logic to Your EmployeeCreateCO Class to Handle the Apply Button ............. 70
Create an apply( ) Method in Your EmployeeAMImpl Class to Implement the
Commit Logic ................................................................................................................. 71
Test Run........................................................................................................................... 71
Revise the Search Page to Include a Create Employee Button .................................... 72
Add "Create Employee" Button Press Handler to Your Search Page ......................... 72
Test Run........................................................................................................................... 73
Author:JarWang (王重东) QQ:jarwang@sina.com Copyright(R):Jarwang
5
OAF Develop(三)Create Page-Part2 ......................................................................... 74
Handle the Back Button in Your Application ........................................................ 74
Make your Create Employee Page initialization handle the Back button .................. 74
Add a rollbackEmployee( ) Method to Your EmployeeAMImpl Class...................... 74
Add Back button handling to the EmployeeResultsCO processRequest( ) ................ 75
Add Button-Handling Logic for the Cancel Button ..................................................... 75
Test run............................................................................................................................ 76
Implement Employee Business Logic Using Declarative Validation ................... 76
Set Up Declarative Validation........................................................................................ 76
Implement Employee Business Logic Using Java Code........................................ 77
Add Import Statements.................................................................................................. 77
Change the Number field to be display-only ............................................................... 77
Validate and set the Employee Number by overriding the setEmployeeId( ) method
.......................................................................................................................................... 77
Set Employee Number default value for the page. ...................................................... 78
Run Test........................................................................................................................... 78
Validate and Set the Start Date................................................................................ 79
Set Start Date................................................................................................................... 79
Validate Start Date.......................................................................................................... 79
Set the Start Date default value for the page ................................................................ 80
Run Test........................................................................................................................... 80
Add Logic to Combine First and Last Names to Make Employee Name............ 80
Add Validation Logic to the setFirstName() Method .................................................. 80
Add Validation Logic to the setLastName() Method................................................... 81
Run Test........................................................................................................................... 81
Creating VVOs for Validations that Require SELECT Statements....................... 81
Create an Employee Validation Application Module.................................................. 82
Associate the Employee Validation Application Module with the HekEmployeeEO
Entity Object.................................................................................................................... 82
Create a Position Validation View Object..................................................................... 82
Add the PositionVVO to the EmployeeVAM Validation Application Module ......... 83
Add an initQuery( ) Method to the PositionVVO Validation View Object ................ 83
Create an Employee Validation View Object................................................................ 83
Add the EmployeeVVO to the EmployeeVAM Validation Application Module...... 83
Add an initQuery( ) Method to the EmployeeVVO Validation View Object............. 83
Create an Entity Expert Class.................................................................................. 84
Create your entity expert class file ................................................................................ 84
Associate the Entity Expert with the HekEmployeeEO Entity Object ........................ 84
Add a convenience method in the HekEmployeeEOImpl for access to the expert ... 85
Validate and Set the ManagerId.............................................................................. 85
Add the isEmployeeActive( ) method to the entity expert.......................................... 85
Add validation logic to the setManagerId() method in the HekEmployeeEOImpl class
.......................................................................................................................................... 85
Run test............................................................................................................................ 86
Validate and Set the Position................................................................................... 86
Add the isPositionValid( ) method to the entity expert............................................... 86
Add validation logic to the setPositionCode() method in the HekEmployeeEOImpl
class.................................................................................................................................. 86
Run test............................................................................................................................ 87
OAF Develop(四)Delete Page.................................................................................... 88
Implement a Delete in HekEmployeeEOImpl Class.............................................. 88
Implement a Delete Switcher................................................................................... 88
Add an Attribute to the EmployeeSummaryVO View Object .................................... 88
Create the Switcher Region............................................................................................ 88
Configure the Default Switcher Case ............................................................................ 89
Create a New Switcher Case.......................................................................................... 89
Format the Delete Column............................................................................................. 90
Run Test........................................................................................................................... 91
Implement the Delete Action................................................................................... 91
Add a deleteEmployee( ) Method to the EmployeeAM .............................................. 91
Add Delete Selection Handler Code to EmployeeResultsCO ..................................... 92
Add Delete Confirmation Handler Code to EmployeeResultsCO.............................. 93
Test run............................................................................................................................ 93
Challenge Task: Create and Implement the Status Column ................................. 94
Add an Attribute to the EmployeeSummaryVO View Object .................................... 94
Add an image Item to the EmpSearchPG ResultsTable............................................... 94
剩余128页未读,继续阅读
bainiao20
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- ExcelVBA中的Range和Cells用法说明.pdf
- 基于单片机的电梯控制模型设计.doc
- 主成分分析和因子分析.pptx
- 共享笔记服务系统论文.doc
- 基于数据治理体系的数据中台实践分享.pptx
- 变压器的铭牌和额定值.pptx
- 计算机网络课程设计报告--用winsock设计Ping应用程序.doc
- 高电压技术课件:第03章 液体和固体介质的电气特性.pdf
- Oracle商务智能精华介绍.pptx
- 基于单片机的输液滴速控制系统设计文档.doc
- dw考试题 5套.pdf
- 学生档案管理系统详细设计说明书.doc
- 操作系统PPT课件.pptx
- 智慧路边停车管理系统方案.pptx
- 【企业内控系列】企业内部控制之人力资源管理控制(17页).doc
- 温度传感器分类与特点.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0