MaterialbyVenki

download MaterialbyVenki

of 23

Transcript of MaterialbyVenki

  • 8/7/2019 MaterialbyVenki

    1/23

    OAFramework Material

    What is OAF?

    It is a Kind Of Platform to Design the web based Application

    In Generally We have Three Applications Available in the Market

    Form Based or Desktop ApplicationsWeb Based Applications

    Mobile Kind Of Applications

    What is the Diff. Between Form Based And Web Based Applications

    Form Based Web Based

    These Applications not worked under the Network like LAN,WAN independently.

    These Applications work Under Networklike LAN,WAN

    To Publish These Applications in theNetwork Should Be Required

    Environmental Support Like jinitiator

    To Publish These Applications in the Network We Doesnt Required Any

    Environmental Support

    Access Time(Form Loading Time) is

    More

    Access Time(Form Loading Time) is

    Less

    Limited API Support Powerful API Support

    Look and Feel is Less Look and Feel is More

    More Platform Dependent Features More Platform Independent Features

    Not Much Powerful Support For OOP

    Standards

    Powerful Support for OOP Standards

    For Example:

    From Oracle Side : D2k

    Form Java Side : core javaConcepts(J2SE)

    From Microsoft Side :VB.net

    For Example:

    From Oracle Side : OAF,ADF

    Form Java Side : Advanced JavaConcepts(J2EE)

    Ex: servlets , jdbc,jsp etcFrom Microsoft Side :

    ASP.net

  • 8/7/2019 MaterialbyVenki

    2/23

    Now Just Look At the Diff in Between Desktop and Web Based Applications

    Best Support Features Available in the Web Based Application

    By Introducing Some Products or Technologies to Achieve the Web Based Applications in tooracle apps EBS Purpose

    AKFramework

    JIT/JTF Framework

    OA Framework

    ADF

    In The Above Front End UI Tools

    Up To 11.5.10.2 D2k is the Leading ProductUpTo R12 OAF is the Leading Product

    Fusion ADF

    D2K OAF ADF

    MVC Architecture MVC Architecture

    Desktop support Web Based Support Web Based Support

    Form Builder JDeveloper JDeveloper

    Pl/sql Java Java

    Features

    Drag and Drop Options

    + FeaturesNo Drag and Drop Options

    ++ Features

    Drag and Drop Options

    We Need to Learn OAF , We Should be Required

    SQLAOL

    Bit Of Java

  • 8/7/2019 MaterialbyVenki

    3/23

    Roles and Responsibilities Of OAF Consultants

    Development of New OAF Pages

    For example

    Creating pagesItems\

    Pick list and Lov Items

    Building Controllers

    Building Required Model Components

    Customization of Existing Seeded Pages

    Personalization of Pages

    Extensions of Pages

    VO ExtensionsCO Extensions

    EO ExtensionsAM Extensions.

    JDEVELOPER INTRODUCTION

    JDeveloper is a freewareIDE supplied by Oracle Corporation. \

    It offers features for development in Java, XML, SQL and PL/SQL, HTML, JavaScript, BPELand PHP.

    JDeveloper covers the full development lifecycle from design through coding, debugging,

    optimization and profiling to deploying.

  • 8/7/2019 MaterialbyVenki

    4/23

    With JDeveloper, Oracle has aimed to simplify application development by focusing onproviding a visual and declarative approach to application development in addition to building an

    advanced coding-environment.

    Oracle JDeveloper integrates with the Oracle Application Development Framework(Oracle

    ADF,OAF) - an end-to-end Java EE-based frameworkthat further simplifies applicationdevelopment.

    The core IDE exposes an API that other teams in Oracle use to build extensions to JDeveloper.BPEL, Portal, BI and other components of the Oracle platform

    [which?]all build their design-time

    tools on top of JDeveloper.

    Environmental Setups Required To Jdeveloper in the OAF:

    Identify and DownLoad The Patch

    Extract The Patch Set The DBC File Properly Set Two Environmental Variables

    Variable_ name : JDEV_USER_HOME

    Variable_ Value : DriveName/FolderName/JdevHome/jdev

    Take the Shortcut of Jdevw.exe Identify and DownLoad The Patch

  • 8/7/2019 MaterialbyVenki

    5/23

    Identify and DownLoad The Patch

  • 8/7/2019 MaterialbyVenki

    6/23

    Extract The Patch

  • 8/7/2019 MaterialbyVenki

    7/23

  • 8/7/2019 MaterialbyVenki

    8/23

  • 8/7/2019 MaterialbyVenki

    9/23

    Set The DBC File Properly

    Copy the Dbc File

  • 8/7/2019 MaterialbyVenki

    10/23

    1

    Paste in the

  • 8/7/2019 MaterialbyVenki

    11/23

    1

    Set Two Environmental Variables

  • 8/7/2019 MaterialbyVenki

    12/23

    1

  • 8/7/2019 MaterialbyVenki

    13/23

    1

    Take the Shortcut of Jdevw.exe

  • 8/7/2019 MaterialbyVenki

    14/23

    1

    Oracle Application Framework

    Oracle Applications Framework is also referred to as OA Framework. This is a framework that excels at

    creating 3-tier web-based applications that link to an 11i Oracle Applications instance while maintaining

    all the security features of that 11i instance. OAF is a model-view-controller technology stack that is fully

    oriented towards E-BS application development. The OAF stack is comprised of underlying technologies

    like UIX and BC4J that respectively form the core of the view and model layers. It includes Application

    Object Library (AOL) that provides common E-BS artifacts such as menus, functions, messages, profiles,

    flexfields and attachments, etc.

    An important significance of the OA framework model is that it facilitates the customization of existing

    out of box i modules as well as allows development of new Self Service Web Application modules. As a

    result, the OA Framework provides benefits of productivity, scalability, and customizability. OA

    Framework Architecture is based on the J2EE MVC design pattern. The MVC architecture is a

    component-based design pattern with clean interfaces between the Model, View, and Controller. The

    Model is where the application implements its business logic. The View is where the application

    implements its user interface and the Controller is where the application handles user interaction and

    directs business flow. Though the OA Framework is J2EE based, it also uses various industry standards

    like HTML, XML, Java, JSP, SQL and Web Services.

  • 8/7/2019 MaterialbyVenki

    15/23

  • 8/7/2019 MaterialbyVenki

    16/23

  • 8/7/2019 MaterialbyVenki

    17/23

    1

    Note : Any Component in the OAF , In Generally called it as One Java Class

    To Control the AOL Standards and performance of the applications by introducing the

    specific package Strure.

    U Should be Follow Below Package Structures to place java classes in the OAF

    Package Structure Syntax

    .oracle.apps.po...webui (or) server

    Total We can see 6 packages :

    .oracle.apps.po... Server

    .oracle.apps.po..poplist, server

    .oracle.apps.po...lov. server

    .oracle.apps.po...schema. server

    .oracle.apps.po...webui

    .oracle.apps.po...lov.webui

  • 8/7/2019 MaterialbyVenki

    18/23

    1

    Note : The Package Structure Should be Ends With Either webui or server in the OAF

    Which Are the Components inside of webui package Those are Called Client Components

    Model-View-Controller Design

    y A component-based design with clean interfaces among model, view, and controller objectsy The controller responds to user actions and directs application flowy The view formats and presents data from a model to the usery Model encapsulates data and business logic of the application

    View Components in the OAF

    Generally The output of Class file is Called it as View in the OAFThe view formats and presents data from a model to the user

    View Components are used by the users.View Components in the form of xml

    We should be place the view components under only webui packages in the OAF

    Examples For View Components in the OAF is

    PageRegion

    Attribute Sets

    Page

    Generally we should be ends with the PG,

    For Ex:

    EmpPG

    EmpPG.xml

  • 8/7/2019 MaterialbyVenki

    19/23

    1

    .oracle.apps.po..webui

    Region

    :

    Subpart of the pageRN or RGSuppNumberRN.xml

    .oracle.apps.po..lov.webui

    MODEL in the OAF :

    Model is the interface between user and database in the OAFModel encapsulates data and business logic of the applicationIf You Create Any Model Component U can Able To See Two Files In the OAF

    Xml and Java Files

    View Objects and View LinksEntity Objects and Associations

    Application Module

    View Objects and View Links

    In Generally Select Statement or Query Called it as View Object in the OAF

    and It is Java Class,By Using This We Can Retrive The Data From DB.

    We Can Build The View Object Class in two Ways

    o By Writing Directly Select Statementso Based On the Entity Objects

    Naming Convention For ViewObject in the OAF is VO

    For Exampleif u Write VO For Emp Data

    Naming ConventionEmpVO

    Now u can see two filesEmpVO.xml

    EmpVOImpl.java

  • 8/7/2019 MaterialbyVenki

    20/23

    2

    OAF Gives u Standard that

    U Can build the ViewObject Class Below any Of the Package As per the OAF Standards

    Except poplist and lov we have to write vos below

    .oracle.apps.po... Server

    For poplist purpose

    .oracle.apps.po..poplist, server

    For Lov purpose

    .oracle.apps.po...lov. server

    The Parent Class For All VOs is : OAViewObjctImpl

    By Using ViewLinks We Can Join Two VOs Are More Than Two VOs

    Note : In The OAF Once U Build The VO , U should be Shuffle to AM As per the OnionStructure

    Entity Objects and Associations

    In Generally Database Table or View Called it as Entity Object in the OAF and It is

    Java Class,By Using This We can perform the DML OperationsLike Insert,update,Delete

    Naming Convention For EntityObject in the OAF is EO

    For Example if u Write EO For Emp Table

    Naming Convention

    EmpEO

  • 8/7/2019 MaterialbyVenki

    21/23

    2

    Now u can see two files

    EmpEO.xml

    EmpEOImpl.java

    OAF Gives u Standard that

    U Can build the EntityObject Class Below Package As per the OAF Standards

    .oracle.apps.po...schema. server

    The Parent Class For All EOs is : OAEntityObjectImpl

    By Using Associations We Can Join Two EOs Are More Than Two EOs

    Note : In The OAF Once U Build The EO , U should be Shuffle to VO As per the OnionStructure

    ApplicationModule

    Which is a JavaClass By using We Can able to Implement All the Bussiness Logic andRelated Bc4j Objects .

    Naming Convention For ApplicationModulein the OAF is AM

    For Example if u Write AM For Emp Bussiness Logic

    Naming Convention

    EmpAM

  • 8/7/2019 MaterialbyVenki

    22/23

    2

    Now u can see two files

    EmpAM.xmlEmpAM Impl.java

    OAF Gives u Standard that

    U Can build the ApplicationModule

    Class Below Package As per the OAF Standards

    .oracle.apps.po... Server

    .oracle.apps.po...lov server

    The Parent Class For All AMs is : OAAppolicationModuleImpl

    Note : In The OAF Once U Build The AM is the Mandatory Class as per the Onion Structure

    With Out AM Class We Cant Run Any Page in the OAF

  • 8/7/2019 MaterialbyVenki

    23/23

    PopList Item Creation Steps in the OAF:

    Create the Item and set the item style as MessageChoice

    Prepre the VO Under poplist.server package.

    Set Below Properties to the Correpondent MessageChoiceBean Item.

    PickListView DefinitionPickList View Display Attribute

    Picklist Value Attribute

    Note :

    You Need to default any thing in the Poplist item set intial value property

    Lov Item Creation Steps in the OAF