• OA Framework
• Workflow
– Used for customizable page and process flow
OA Framework Personalization
• Prerequisites
– Desktop with 1.5 GB RAM
– Telnet and FTP access to apps and db server
– Database connectivity details: Apps username and password, SID,
Host Name and port.
– Exact version of OA Framework on server, got from URL below
http://<Base Address>/OA_HTML/OAInfo.jsp
– Java DK version 1.4.2.16
– Internet connection, Metalink access etc.
– References
– Metalink Note: 416708.1 - How to find correct version of JDeveloper
– Metalink Note: 330236.1- Configuring JDeveloper For Use With
Oracle Applications 11i and R12
– Metalink Note: 269138.1 - OAF Developer's Guide Release 11.5.10
– http://oracle.anilpassi.com/apps-technology/3.html
– Download appropriate patch with ‘JDeveloper with OA Framework extension’
from Metalink, as specified by Metalink note 416708.1 and unzip it to
directory d:\software\JDeveloper.
– Download and install Java 1.4.2.16 under directory D:\software\j2sdk1.4.2_16
– Set Environment Variables ( Under My Computers -> Properties -> Advanced
-> Environment Variables)
– JDEV_USER_HOME to d:\software\JDeveloper\jdevhome\jdev
– Using System Administrator responsibility, create Application User TESTnn
and assign responsibilities:
– OA Framework Toolbox Tutorial
– OA Framework Toolbox Tutorial Labs
– FTP(in ASCII mode) appropriate .dbc file (database connection file) from the
server to desktop. Dbc files are available under $FND_TOP/secure directory.
Copy this file to directory :
d:\software\JDeveloper\jdevhome\jdev\dbc_files\secure.
– Create a desktop short-cut for
d:\software\JDeveloper\jdevbin\jdev\bin\jdev.exe
– Launch JDeveloper either using short-cut and clicking on jdev.exe directly.
This starts Oracle 9i JDeveloper.
– In System Navigator, Click on Connections and to Database. Right click on
Database node and select New Connection. Enter appropriate details and
test the connection.
– In Tools -> Preferences -> Embedded OC4J, select ‘Default Local IP Address
(recommended)’.
– In File -> Open , Select directory myprojects and open file ‘toolbox.jws’
– Expand ‘toolbox.jws’ and select ‘tutorial.jpr’ and then select menu project ->
project settings. In ‘Run-time settings’, enter the name of application user and
password created.
– Right click on ‘tutorial.jpr’ and select ‘Edit Business Component Project’
– Repeat the above for all .jpr files
– Select ‘toolbox.jws’ and then select menu option project -> rebuild
toolbox.jws
– Select ‘tutorial.jpr’ and then select menu option project -> show categories.
– Expand HTML Sources under tutorial.jpr and select test_fwktutorial.jsp and
then select menu option run -> run fwktutorial.jsp which displays the
application.
• BC4J Overview
• Entity Object
• Entity Association
• View Object
• View Link
• Application Module
• Transaction
View Layer Terminology
• Page – the basic UI component created in OA Framework.
• Region – A portion of a page defined in page or reused (extended) from
external region.
• Property – Property of Items and Regions.
• Attribute – An XML attribute in the UIX file. Roughly equivalent to a column
in a View Object.
• BLAF – Oracle’s Browser Look-and-Feel Standard (available at:
http://otn.oracle.com/tech/blaf/)
• Attribute set – a named set of properties applied to configure an item.
• CSS Class – the cascading style sheet class applied to the item (see BLAF).
• View Instance – the VO used for data binding
• View Attribute – the VO’s specific attribute to which the item is bound
• SPEL – Simplest Possible Expression Language
Creating Basic Page
• Create “Workspace Configured for Oracle Applications”
– Default package should be type:
xx.oracle.apps.mmm.module.submodule.webui
• Create “Project Configured for Oracle Applications”
• Perform project settings
– Runtime Connections : DBC File, User Name and Password
• Change Tools->Preferences->Embedded OC4J
• Compile and run the page
• Add the Regions, Shared Regions and Items to Page of appropriate Style
• Change properties of Regions and Items
• Create/Modify “PageLayout Components” sub-regions and other similar
“<Region> Component” sub-regions.
– Also called “Named children” of region (Other items are called
“Indexed children”)
• Associate Pages, Regions and Items with BC4J components (AM, VO Object,
VO Attribute) and Controller.
– These should have been pre-created
• Test pages progressively
Named and Indexed Children
• Named children of a Bean have a specific name, specific purpose, and a
specific location in the UI.
• Indexed children of a Bean depend on their order
under the Bean
Shared Regions
Attribute Sets
CSS Styles
Region Styles
• advancedSearch • graphTable
• advancedTable • hGrid
• bulletedList • header
• cellFormat • hideShow
• contentContainer • hideShowHeader
• contentFooter • labeledFieldLayout
• defaultDoubleColumn • navigationBar
• defaultFormStack • pageButtonBar
• defaultSingleColumn • query
• defaultStack • rowLayout
• flexibleLayout • Shuttle
• gantt • messageComponentLayout
• stackLayout
• subTabLayout
• switcher
• table
• tableLayout
• train
• tree
Sub-Region Styles
Item Styles
• attachmentLink • staticStyledText
• attachmentTable • submitButton
• button • tip
• exportButton • urlInclude
• flex • messageCheckBox
• formParameter • messageDownload
• formValue • messageFileUpload
• formattedText • messageLovChoice
• image • messageLovInput
• link • messageRadioButton
• rawText • messageRadioGroup
• resetButton • messageStyledText
• richTextEditor • messageTextInput
• separator • messageChoice
• servletInclude • messageRichTextEditor
• spacer • messageInLineAttachment
OA Framework:
Basic BC4J Concepts
Entity Objects
Entity Association
View Links
Application Module
• Defines the logical data model and business methods needed to support an
application task
• Handles transactions
• Interacts with clients
BC4J Packages
• There are two types of packages, directory paths and files. Directory path
packages hold:
– EO-related (business logic) .java and .xml files in
oracle.apps.<application shortname>. <module>.schema.server
– AM and VO (UI-related logic) .java and .xml files in
oracle.apps.<application shortname>. <module>.server
– Poplist- and LOV-related VO and AM .java and .xml files in
oracle.apps.<application shortname>.<module>.poplist.server and
oracle.apps.<application shortname>. <module>.lov.server