4. 4
Oracle Applications Framework
Prepared by XXX
Connection Summary
Step Navigation Property Value
Create
Connection
Connection->
Database ->
New Database
Connection
NA NA
Properties Wizard Steps 1.Connection Name
2.Connection Type
3.User Name
4.Password
5.Driver
6.Host Name
7.JDBC Port
8.SID
1.Training
2.Oracle JDBC
3.Apps
4.Apps schema password 5.Thin
6.Localhost [ your host name]
7.1521 [ Database port name , default 1521 ]
8.VIS [ Database Name , default VIS]
5. 5
Oracle Applications Framework
Prepared by XXX
Workspace Screenshots & Summary
Step Navigation Property Value
Create
Workspace
Applications->
New OA Workspace
NA NA
Properties Wizard Steps 1.Directory Name
2.File Name
1.D:jdev9idevhomejdevmyprojects[ $JDEV_USER_HOME]
2.TrainingWS.jws
7. 7
Oracle Applications Framework
Prepared by XXX
Project Summary
Step Navigation Property Value
Create OA
Project
TrainingWS->
New OA Project
NA NA
Properties Wizard Steps 1.Directory Name
2.File Name
3.Default Package
4.Use Repository Design Time
5.Connection
6.DBC File Name
7.User Name
8.Password
9.Application Short Name
10.Responsibility_key
1. $JDEV_USER_HOMEjdevmyprojects
2.TrainingPrj.jpr
3.urname.oracle.apps.ont.training.webui
4.Checked
5.Training
6. $JDEV_USER_HOMEjdevdbc_filessecurevis.dbc
7.Operations
8.Welcome
9.SYSADMIN
10.SYSTEM_ADMINISTRATOR
8. 8
Oracle Applications Framework
Prepared by XXX
Application Module Creation & Summary
Step Navigation Property Value
Create
AM
Project-> New-> ADF Business Components
-> Application Module
Proper
ties
Wizard
Steps
1.Name
2.Package
3.Generate
Java Files
1.TrainingAM
2.training.oracle.apps.ont.tra
ining.server
3.Checked
11. 11
Oracle Applications Framework
Prepared by XXX
View Object Creation Summary
Step Navigation Property Value
Create View
Object
Project-> New->
ADF Business
Components
-> view Object
NA NA
Properties Wizard Steps 1.Name
2.Package
3.Query Statement
4.Generate Java File
EmpVOImpl,EmpVORowImpl
5.Generate Java File
6.Generate Accessors
1.EmpVO
2.oracle.apps.ont.test.login.server
3. Select employee_id,title,full_name,position_code,salary
from training_employee
Note: Press test to test the query
4.Checked
5.Checked
6.Checked
Attach EmpVO to
TestAM
TestAM->Edit
Settings
1.Data Model 1.Move EmpVO from left pane to right pane
16. 16
Oracle Applications Framework
Prepared by XXX
Entity View Object Creation Contd …
Stepc Navigation Property Value
Create View
Object
BC4J->
New View Object
NA NA
Properties Wizard Steps 1.Name
2.Package
3.Step 2 of 6 : Entity Objects
4.Step 2 of 6 : Attributes
EmpEOVOImpl
5.Generate Java File
EmpEOVORowImpl
6.Generate Java File
7.Generate Accessors
1.EmpEOVO
2.oracle.apps.ont.test.login.server
3. Move EmpEO from left pane to right pane
Note: Press test to test the query
4.Choose required attributes and move from left to right pane
5,6,7.Checked
Attach EmpEOVO
to TestAM
TestAM->Edit
Settings
1.Data Model 1.Move EmpEOVO from left pane to right pane
17. 17
Oracle Applications Framework
Prepared by XXX
Page Creation
Steps Navigation Property Value
Create Page TestPrj.jpr -> New
Web Tier -OA
Components-Page
NA NA
Properties Wizard Steps 1.Name
2.Package
1.LoginPG [ Page name should end with PG ]
2.oracle.apps.ont.test.login.webui [web comp should be in webui ]
Note: Page creation creates a region called region1 page layout
region
18. 18
Oracle Applications Framework
Prepared by XXX
PLRN Properties
Steps Navigation Property Value
Page layout
region: Properties
LoginPgG ->
region1
NA NA
Properties Property
Inspector
( Double click on
region1 to invoke
property
inspector)
1.Name
2.Region Style
3.Application Module
4.Controller
5.Window Title
6.Page Title
1.LoginPLRN [ Region name should end with RN]
2.PageLayout
3.oracle.apps.ont.test.login.server.TestAM
Note: AM can set at PLRN or anyother region ,usually it is set
at PLRN.
4. oracle.apps.ont.test.login.webui.LoginCO
[ Please refer Controller creation Slide]
4.Login Window
5.Login Page
19. 19
Oracle Applications Framework
Prepared by XXX
Create Controller
Steps Navigation Property Value
Create Controller LoginPgG ->
LoginPLRN->Set
New Controller
NA NA
Properties Wizard Steps 1.Package Name
2.Class Name
1. oracle.apps.ont.test.login.webui
2.LoginCO [ Controller name should end with CO]
Note1: After creation of controller for PLRN , PLRN controller
is set to the controller created. In this case controller to
LoginPLRN is set as oracle.apps.ont.test.login.webui.LoginCO
Note2:Controller can also set from property inspector if it
already available
Note3:Controller can set at PLRN or any other region level.
Usually it is set at PLRN level.
20. 20
Oracle Applications Framework
Prepared by XXX
Create Region
Steps Navigation Property Value
Create Region LoginPLRN->
New -> Region
NA NA
Properties Property
Inspector
1.ID
2.Region Style
1.LoginRN [ Region name should end with RN]
2.Default Single Column [ Choose any Style as required]
21. 21
Oracle Applications Framework
Prepared by XXX
Create Item bean & Common Properties
Steps Navigation Property Value
Create Item LoginRN-> New -
> Item
NA NA
Common
Properties
Properties 1.Required
2.ReadOnly
3.Disabled
4.Rendered
5.Acces Key
6.Prompt
7.View Instance
8.View Attribute
9.ItemStyle
10.ID
1.True/False
2.True/False
3.True/False
4.True/False [ we can also use SPEL here]
5.Key to access the field
6.Label to display in front of the field
7.View Name [ This is attached to Page/Region AM]
8.View Attribute [ This attribute value rendered in this field]
Note: 7,8 is mandatory to get information from database
9.Choose style as required
[for text input = Message Text Input, for display field =
Message Styled Text ,for submit button =submit button , for
LOV = Message LOV Input , for Pick List = message choice
etc ., ]
10.ID [ Prefix with item type ex: txtUserName , txt denotes field
as text input and username is the description.Prefix for display
item disp, pick list is pl , lov is lov , button is btn etc., ]
Note: above specified is custom naming conventions and
Oracle does not specify any naming conventions for form fields
22. 22
Oracle Applications Framework
Prepared by XXX
Text , Display , Raw text ,Submit , Reset ,Pick List bean
Steps Navigation Property Value
Create text Item LoginRN-> New ->
Item
1.ID
2.ItemStyle
3.Prompt
4.ViewInstance
5.ViedAttribute
1.txtLoginName
2.Message Text input
3.User Name
4.EMPVO [ Optional ]
5.FullName [ Optional ]
Note: Used to capture information ,can display /capture DB
information when mapped to VO [ Properties 4,5 ]
Create Display
Item
LoginRN-> New ->
Item
1.ID
2.ItemStyle
3.Prompt
4.ViewInstance
5.ViedAttribute
1.dspLoginName
2.Message Styled Text
3.User Name
4.EMPVO
5.FullName
Note: Used to display db column value.
Create raw text
item
LoginRN-> New ->
Item
1.ID
2.ItemStyle
3.text
1.rtUserNameRules
2.Raw Text
3.<B>User Name Rules</B>
Create Submit
Button
LoginRN-> New ->
Item
1.ID
2.ItemStyle
3.Prompt
1.btnSubmit
2.Submit
3.Login
Note: Used to submit form values for server side processing
Create Reset
Button
LoginRN-> New ->
Item
1.ID
2.ItemStyle
3.Prompt
1.btnSubmit
2.Reset
3.Reset
Note: Used to reset to initial values of the current page at client
Create Pick List
Item
LoginRN-> New ->
Item
1.ID
2.ItemStyle
3.Prompt
4.Pick List View Definition
5.Pick List View Attribute
1.plPosition
2.Message Choice
3.Position
4.oralce.apps.ont.test.login.server.positionvo
Note: Full path of VO needs to specified
5.PoistionCode
Note: Used to display db column value on mapping current
page/region AM View Object.
25. 25
Oracle Applications Framework
Prepared by XXX
Create Independent LOV Region Contd …2
Steps Navigation Property Value
Create Independent
LOV Region
TestPrj.jpr->
New ->
WebTier -
>OA
Compxonents
-> Region
1.Name
2.Package
3.Style
1.EmpLOVRN
2.oralce.apps.ont.test.login.webui
3.List Of Values
Create a Region
Under LOV
independent Region
EmpLOVRN-
> New ->
Table Using
Wizard
1.ID
2.Region Style
3.AM
4.VO
5.Atribute Properties : ItemStyle
1.EmpLovDetRN
2.Table
3.oracle.apps.ont.test.login.server.TestAM
4.EmpLOVVO
5.EmployeeID , EmployeeName = Message Styled Text
6.PositionCode = form value
Note: external criteria columns will set as form values (6)
Properties
:EmpLovDetRN :Item
Properties
EmployeeID
EMployeeNa
me
PositionCode
1.SearchAllowed
2.Sort Allowed
3.Initial Sort Sequence
4.Selective Search Criteria
1.True [to search for List of Values based on particular field]
2.True [to make sort based on particular colum]
3.None[First ,Second, Third, None (Order by columns position)]
4.Flase[True,Search Only on this column ,even when other
criteria available]
Properties:EmplovRN EmpLovRN 1.Scope 1.Public[ to access this lov anywhere in the current project ]
26. 26
Oracle Applications Framework
Prepared by XXX
Mapping Independent/Dependent External LOV to an Item
Steps Navigation Property Value
Create LOV Item SearchRN-> New -
> Item
1.ID
2.ItemStyle
3.Prompt
4.External LOV
1.txtEmployeeID
2.MessageLOV input
3.Employee ID
4.oracle.apps.ont.test.webui.EmpLOVRN
Note: Use browse button to select available public LOV
LOV Mappings :
Return Item &
Criteria Item
SearchRN-
>txtEmployeeID-
>Lov Mappings-
>New ->LOV Map
1.ID
2.LOV Region Item
3.Retrun Item
4.Criteria Item
5.Required
1.lovEmployeeIDMap
2.EmployeeID [ Select from drop down list ]
3.txtEmployeeID [ The value of Employee ID of LOV will be
returned to local item txtEmployeeID]
4.TxtEmployeeId [ The value user entered in txtEmployeeID field
is attached to LOV region EmployeeID for initial search]
5.False [ True, user mandated to enter value in txtEmployeeID
before invoking LOV]
LOV Mappings :
Return Item
[ Multiple return
values ]
SearchRN-
>txtEmployeeID-
>Lov Mappings-
>New ->LOV Map
1.ID
2.LOV Region Item
3.Retrun Item
1.lovEmployeeNameMap
2.EmployeeName [ Select from drop down list ]
3.txtEmployeeName [ The value of Employee Name of LOV will
be returned to local item txtEmployeeName]
LOV Mappings :
Criteria Item :
Exact Match
SearchRN-
>txtEmployeeID-
>Lov Mappings-
>New ->LOV Map
1.ID
2.LOV Region Item
3.Criteria Item
4.Required
1.lovPositionMap
2.PositionCode [ Select from drop down list ]
3.txtPosition[PositionCode in LOV should form value style item]
4.True [ must not set false as this is criteria item for LOV.
User must enter exact value in txtPosition before invoking LOV ,
This value used for exact match for positioncode lov item]
LOV Mappings :
Criteria Item :
Partial Match
SearchRN-
>txtEmployeeID-
>Lov Mappings-
>New ->LOV Map
1.ID
2.LOV Region Item
3.Criteria Item
4.Required
5.Progamatic Query
1.lovPositionMap
2.PositionCode [ Select from drop down list ]
3.txtPosition[PositionCode in LOV should form value style item]
4.True [ must not set false as this is criteria item for LOV.
User must enter exact value in txtPosition before invoking LOV ,
This value used for exact/partial match for positioncode lov item]
5.True [ As we expecting to a partial search based txtPosition
Value ,we need to handle it at the LOVRN Controller to add this
condition to where condition of LOV View Object , Code of LOV
CO provided in next slide]