SlideShare una empresa de Scribd logo
1 de 27
OAF Development Guide
Concept

 Controller (CO)
 Application Module (AM)
 View Object (VO)
 Entity Object (EO)
 Page, Region & Region Items
Concept - Controller (CO)
   A controller in OA Framework is a Java class that is attached to
    a region. It is mainly responsible for page rendering and
    respond to and handle user actions
   Based on OAController interface (3 methods)
     –   processRequest(): called by OA Framework just before a region
         gets displayed
     –   processFormData(): invoked when a user submits the page
     –   processFormRequest(): invoked if processFormData() does not
         raise any unhandled exceptions
   Common Parameters
     –   OAPageContext: provides application context and also the current
         user’s session-related details
             get parameter values passed to the page
             get a handle to the Root Application Module
             navigate to another page
     –   OAWebBean: Use this parameter to get a handle to any of the
         beans within an OAF page
Concept - Application Module (AM)

A  broker between the User Interface and
  Database Object [VO and EO]
 Every OA Framework page accessed
  through Oracle Applications must have an
  Application Module attached to its top-level
  region
 Application modules can also be attached at
  lower-level regions within the page (i.e.
  Nested AMs
Concept - View Object (VO)

 query data from database
 can be SQL or EO based
Concept - Entity Object (EO)

 include all columns of a corresponding table
 responsible for doing inserts, updates, and
  deletes to database tables
 each instance of an entity object represents a
  single row in the database table
Concept - Page, Region & Region Items

A page consists of regions, and the region
 can consist of various region items. Regions
 and region items can be of differing types.
 They can also be nested within other regions.
Tools

 JavaDecomplier
 JDeveloper
 Browser (with Developer Mode)
Tools - Java Decomplier

 Decompile   java .class files (CO / VO / EO
  etc.)
 E.g. Cavaj

  http://cavaj-java-decompiler.en.softonic.com
Tools - JDeveloper

 Determinethe right version of JDeveloper
 Metalink Note: 416708.1
Tools - Browser

 IE   - Developer Mode
Tools - Browser

 Firefox   – Firebug Plug-in
Setup

 Environment   Variable
 Java Packages
 Page / Region XML Files
 DBC File
 Profile Options
Setup – Environment Variable

 JDEV_USER_HOME

 E.g. C:JDeveloper9ijdevhomejdev
Setup – Java Packages

 Standard    Package Convention
  –   e.g. Package oracle.apps.ap.oie.webui -> Path:
      $JAVA_TOP/oracle/apps/oie/webui
 Extension    Naming Convention
  –   adding company name as a prefix
  –   e.g. Package pag.oracle.apps.ap.oie.webui ->
      Path $JAVA_TOP/pag/oracle/apps/oie/webui
Setup – Java Packages
Setup – Java Packages

   Download class files & server.xml
    –   Save to <JDEV_USER_HOME>myclasses
    –   E.g.
        C:JDeveloper9ijdevhomejdevmyclassesoracleappsapo
        iewebui*
    –   Some important classes:
          $JAVA_TOP/oracle/cabo/*
          $JAVA_TOP/oracle/jbo/*
          $JAVA_TOP/oracle/svc/*
          $JAVA_TOP/oracle/apps/fnd/common/*
          $JAVA_TOP/oracle/apps/fnd/framework/*
          $JAVA_TOP/oracle/apps/fnd/wf/*
Setup – Page / Region XML Files

 Download    xml files
  –   Path: <APPLICATION_TOP>/mds/*
  –   e.g. $AP_TOP/mds/oie/webui/*.xml
  –   Save to <JDEV_USER_HOME>myprojects
  –   e.g.
      C:JDeveloper9ijdevhomejdevmyprojectsoracle
      appsapoiewebui*
  –   (Note: does not have to create "mds" folder)
Setup – DBC File

 Contains all the information (except
  password) required to establish a database
  connection
 Download From $FND_SECURE
 Save to
  <JDEV_USER_HOME>dbc_filessecure
Setup – Profile Option

 Personalize     Self-Service Defn
  –   must be set to Yes for personalizations to be
      performed
 FND:    personalization region Link Enabled
  –   enable personalization links at region level.
 FND:    Diagnostics
  –   An About this page link appears at the bottom of
      every OA Framework page
Methods

 “About this Page”
 Personalization
 Extension
  –   CO Extension
  –   VO Extension and Substitution
  –   EO / AM Extension
 Modification   of existing classes (not preferred)
Deployment

 Page  / Region XML Files
 VO Substitutions
 .class files (e.g. CO Extension)
Deployment - Page / Region XML Files

   Step 1 – import.bat
    –   cd C:JDeveloper9ijdevbinjdevbin
    –   import
        C:JDeveloper9ijdevhomejdevmyprojectsoracleappsapoie
        webuiOIEMAINPAGE.xml -username apps -password apps
        -rootdir C:JDeveloper9ijdevhomejdevmyprojects
        -dbconnection
        "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL
        =TCP)(HOST = pagdisc.local)(PORT=1523)))
        (CONNECT_DATA=(SERVICE_NAME = UAT)))"
Deployment - Page / Region XML Files

 Step   2 – Clear MDS Cache
  –   Login as Functional Administrator
Deployment - VO Substitutions

 Step   1 - jpximport.bat
  –   cd C:JDeveloper9ijdevbinjdevbin
  –   jpximport.bat
      C:JDeveloper9ijdevhomejdevmyclassesPAGO
      IE.jpx -username apps -password apps
      -dbconnection
      "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS
      =(PROTOCOL=TCP)(HOST = pagdisc.local)
      (PORT=1523)))
      (CONNECT_DATA=(SERVICE_NAME = UAT)))"
Deployment - VO Substitutions

 Step   2 – Bounce mid-tier
  –   $COMMON_TOP/admin/scripts/adstpall.sh
      apps/<apps_password>
  –   $COMMON_TOP/admin/scripts/adstrtal.sh
      apps/<apps_password>
Deployment - .class files

 Step   1 – Upload .class files
  –   Upload .class files to $JAVA_TOP (e.g.
      $JAVA_TOP/oracle/apps/ap/oie/webui)
 Step   2 – Bounce apache
  –   $COMMON_TOP/admin/scripts/
      $TWO_TASK*/adapcctl.sh stop
  –   $COMMON_TOP/admin/scripts/
      $TWO_TASK*/adapcctl.sh start

Más contenido relacionado

La actualidad más candente

Dh2 Apps Training Part2
Dh2   Apps Training Part2Dh2   Apps Training Part2
Dh2 Apps Training Part2
jamram82
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1
Amit Sharma
 
Application engine
Application engineApplication engine
Application engine
JAYAARC
 

La actualidad más candente (20)

Dh2 Apps Training Part2
Dh2   Apps Training Part2Dh2   Apps Training Part2
Dh2 Apps Training Part2
 
Microsoft Azure
Microsoft AzureMicrosoft Azure
Microsoft Azure
 
Java ee introduction
Java ee introductionJava ee introduction
Java ee introduction
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1
 
Oracle ADF Case Study
Oracle ADF Case StudyOracle ADF Case Study
Oracle ADF Case Study
 
Oracle Applications R12 architecture
Oracle Applications R12 architectureOracle Applications R12 architecture
Oracle Applications R12 architecture
 
Application engine
Application engineApplication engine
Application engine
 
Tutorial: Writing Sencha Touch Mobile Apps using ]project-open[
Tutorial: Writing Sencha Touch Mobile Apps using ]project-open[Tutorial: Writing Sencha Touch Mobile Apps using ]project-open[
Tutorial: Writing Sencha Touch Mobile Apps using ]project-open[
 
ATG - Installing WebLogic Server
ATG - Installing WebLogic ServerATG - Installing WebLogic Server
ATG - Installing WebLogic Server
 
Oracle ADF 11g Skinning Tutorial
Oracle ADF 11g Skinning TutorialOracle ADF 11g Skinning Tutorial
Oracle ADF 11g Skinning Tutorial
 
Oracle apps online training
Oracle apps online trainingOracle apps online training
Oracle apps online training
 
Installing Oracle 11g and Oracle Apex 5.1 ( Easy Way To install)
Installing Oracle 11g and Oracle Apex 5.1 ( Easy Way To install)Installing Oracle 11g and Oracle Apex 5.1 ( Easy Way To install)
Installing Oracle 11g and Oracle Apex 5.1 ( Easy Way To install)
 
Customizing Oracle EBS OA Framework
Customizing Oracle EBS OA FrameworkCustomizing Oracle EBS OA Framework
Customizing Oracle EBS OA Framework
 
New World Of 2010 Share Point Administration
New World Of 2010 Share Point AdministrationNew World Of 2010 Share Point Administration
New World Of 2010 Share Point Administration
 
Mule data weave
Mule data weaveMule data weave
Mule data weave
 
OBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation StepsOBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation Steps
 
Oracle OSB Tutorial 1
Oracle OSB Tutorial 1Oracle OSB Tutorial 1
Oracle OSB Tutorial 1
 
Mule using Salesforce
Mule using SalesforceMule using Salesforce
Mule using Salesforce
 
]project-open[ My First Package
]project-open[ My First Package]project-open[ My First Package
]project-open[ My First Package
 
Oracle EMC 12C Grand Tour
Oracle EMC 12C Grand TourOracle EMC 12C Grand Tour
Oracle EMC 12C Grand Tour
 

Destacado

Forms11 presentation at ssuet 05 sep-2012
Forms11 presentation at ssuet 05 sep-2012Forms11 presentation at ssuet 05 sep-2012
Forms11 presentation at ssuet 05 sep-2012
Zubair Ali
 
ADF Development Survival Kit
ADF Development Survival KitADF Development Survival Kit
ADF Development Survival Kit
andrejusb
 

Destacado (17)

Oaf personalization examples
Oaf personalization examplesOaf personalization examples
Oaf personalization examples
 
Oaf personaliztion examples
Oaf personaliztion examplesOaf personaliztion examples
Oaf personaliztion examples
 
oracle oa framework training | oracle oa framework training courses | oa fram...
oracle oa framework training | oracle oa framework training courses | oa fram...oracle oa framework training | oracle oa framework training courses | oa fram...
oracle oa framework training | oracle oa framework training courses | oa fram...
 
enhance-oracle-sshr-with-advanced-personalizations-and-oa-fwk-extensions
enhance-oracle-sshr-with-advanced-personalizations-and-oa-fwk-extensionsenhance-oracle-sshr-with-advanced-personalizations-and-oa-fwk-extensions
enhance-oracle-sshr-with-advanced-personalizations-and-oa-fwk-extensions
 
ORACLE FRAMEWORK ONLINE TRAINING
ORACLE FRAMEWORK ONLINE TRAININGORACLE FRAMEWORK ONLINE TRAINING
ORACLE FRAMEWORK ONLINE TRAINING
 
ADF Value Proposition in 10 key points
ADF Value Proposition in 10 key pointsADF Value Proposition in 10 key points
ADF Value Proposition in 10 key points
 
Forms11 presentation at ssuet 05 sep-2012
Forms11 presentation at ssuet 05 sep-2012Forms11 presentation at ssuet 05 sep-2012
Forms11 presentation at ssuet 05 sep-2012
 
ADF Development Survival Kit
ADF Development Survival KitADF Development Survival Kit
ADF Development Survival Kit
 
Real life forms to adf
Real life forms to adfReal life forms to adf
Real life forms to adf
 
Oracle Application Technical - Hz architecture
Oracle Application Technical - Hz architectureOracle Application Technical - Hz architecture
Oracle Application Technical - Hz architecture
 
Tca presentation
Tca presentationTca presentation
Tca presentation
 
ADF Mythbusters UKOUG'14
ADF Mythbusters UKOUG'14ADF Mythbusters UKOUG'14
ADF Mythbusters UKOUG'14
 
Oracle TCA 101
Oracle TCA 101Oracle TCA 101
Oracle TCA 101
 
Building customer relationships without being a creep Chris Hayes R2i - Gil...
Building customer relationships without being a creep   Chris Hayes R2i - Gil...Building customer relationships without being a creep   Chris Hayes R2i - Gil...
Building customer relationships without being a creep Chris Hayes R2i - Gil...
 
ADF Anti-Patterns: Dangerous Tutorials
ADF Anti-Patterns: Dangerous TutorialsADF Anti-Patterns: Dangerous Tutorials
ADF Anti-Patterns: Dangerous Tutorials
 
Impact of Trading Community Architecture (TCA) on Oracle Receivables
Impact of Trading Community Architecture (TCA) on Oracle ReceivablesImpact of Trading Community Architecture (TCA) on Oracle Receivables
Impact of Trading Community Architecture (TCA) on Oracle Receivables
 
Oracle application framework (oaf) online training
Oracle application framework (oaf) online trainingOracle application framework (oaf) online training
Oracle application framework (oaf) online training
 

Similar a Oaf development-guide

Web applications with Catalyst
Web applications with CatalystWeb applications with Catalyst
Web applications with Catalyst
svilen.ivanov
 
Ch 04 asp.net application
Ch 04 asp.net application Ch 04 asp.net application
Ch 04 asp.net application
Madhuri Kavade
 
Head First Zend Framework - Part 1 Project & Application
Head First Zend Framework - Part 1 Project & ApplicationHead First Zend Framework - Part 1 Project & Application
Head First Zend Framework - Part 1 Project & Application
Jace Ju
 
OWB11gR2 - Extending ETL
OWB11gR2 - Extending ETL OWB11gR2 - Extending ETL
OWB11gR2 - Extending ETL
Suraj Bang
 

Similar a Oaf development-guide (20)

Maven
MavenMaven
Maven
 
Maven
MavenMaven
Maven
 
Training in Android with Maven
Training in Android with MavenTraining in Android with Maven
Training in Android with Maven
 
Maven in Mule
Maven in MuleMaven in Mule
Maven in Mule
 
Maven
MavenMaven
Maven
 
Web applications with Catalyst
Web applications with CatalystWeb applications with Catalyst
Web applications with Catalyst
 
Maven introduction in Mule
Maven introduction in MuleMaven introduction in Mule
Maven introduction in Mule
 
Tuning and optimizing webcenter spaces application white paper
Tuning and optimizing webcenter spaces application white paperTuning and optimizing webcenter spaces application white paper
Tuning and optimizing webcenter spaces application white paper
 
Maven
MavenMaven
Maven
 
SeedStack feature tour
SeedStack feature tourSeedStack feature tour
SeedStack feature tour
 
Google app engine by example
Google app engine by exampleGoogle app engine by example
Google app engine by example
 
Build tons of multi-device JavaScript applications - Part 1 : Boilerplate, de...
Build tons of multi-device JavaScript applications - Part 1 : Boilerplate, de...Build tons of multi-device JavaScript applications - Part 1 : Boilerplate, de...
Build tons of multi-device JavaScript applications - Part 1 : Boilerplate, de...
 
JSF 2.0 Preview
JSF 2.0 PreviewJSF 2.0 Preview
JSF 2.0 Preview
 
Ch 04 asp.net application
Ch 04 asp.net application Ch 04 asp.net application
Ch 04 asp.net application
 
Rest web service_with_spring_hateoas
Rest web service_with_spring_hateoasRest web service_with_spring_hateoas
Rest web service_with_spring_hateoas
 
Head First Zend Framework - Part 1 Project & Application
Head First Zend Framework - Part 1 Project & ApplicationHead First Zend Framework - Part 1 Project & Application
Head First Zend Framework - Part 1 Project & Application
 
OWB11gR2 - Extending ETL
OWB11gR2 - Extending ETL OWB11gR2 - Extending ETL
OWB11gR2 - Extending ETL
 
Spring 2007 SharePoint Connections Oleson Advanced Administration and Plannin...
Spring 2007 SharePoint Connections Oleson Advanced Administration and Plannin...Spring 2007 SharePoint Connections Oleson Advanced Administration and Plannin...
Spring 2007 SharePoint Connections Oleson Advanced Administration and Plannin...
 
Translation from csv to xml
Translation from csv to xmlTranslation from csv to xml
Translation from csv to xml
 
Deploying configurable frontend web application containers
Deploying configurable frontend web application containersDeploying configurable frontend web application containers
Deploying configurable frontend web application containers
 

Oaf development-guide

  • 2. Concept  Controller (CO)  Application Module (AM)  View Object (VO)  Entity Object (EO)  Page, Region & Region Items
  • 3. Concept - Controller (CO)  A controller in OA Framework is a Java class that is attached to a region. It is mainly responsible for page rendering and respond to and handle user actions  Based on OAController interface (3 methods) – processRequest(): called by OA Framework just before a region gets displayed – processFormData(): invoked when a user submits the page – processFormRequest(): invoked if processFormData() does not raise any unhandled exceptions  Common Parameters – OAPageContext: provides application context and also the current user’s session-related details  get parameter values passed to the page  get a handle to the Root Application Module  navigate to another page – OAWebBean: Use this parameter to get a handle to any of the beans within an OAF page
  • 4. Concept - Application Module (AM) A broker between the User Interface and Database Object [VO and EO]  Every OA Framework page accessed through Oracle Applications must have an Application Module attached to its top-level region  Application modules can also be attached at lower-level regions within the page (i.e. Nested AMs
  • 5. Concept - View Object (VO)  query data from database  can be SQL or EO based
  • 6. Concept - Entity Object (EO)  include all columns of a corresponding table  responsible for doing inserts, updates, and deletes to database tables  each instance of an entity object represents a single row in the database table
  • 7. Concept - Page, Region & Region Items A page consists of regions, and the region can consist of various region items. Regions and region items can be of differing types. They can also be nested within other regions.
  • 8. Tools  JavaDecomplier  JDeveloper  Browser (with Developer Mode)
  • 9. Tools - Java Decomplier  Decompile java .class files (CO / VO / EO etc.)  E.g. Cavaj http://cavaj-java-decompiler.en.softonic.com
  • 10. Tools - JDeveloper  Determinethe right version of JDeveloper Metalink Note: 416708.1
  • 11. Tools - Browser  IE - Developer Mode
  • 12. Tools - Browser  Firefox – Firebug Plug-in
  • 13. Setup  Environment Variable  Java Packages  Page / Region XML Files  DBC File  Profile Options
  • 14. Setup – Environment Variable  JDEV_USER_HOME E.g. C:JDeveloper9ijdevhomejdev
  • 15. Setup – Java Packages  Standard Package Convention – e.g. Package oracle.apps.ap.oie.webui -> Path: $JAVA_TOP/oracle/apps/oie/webui  Extension Naming Convention – adding company name as a prefix – e.g. Package pag.oracle.apps.ap.oie.webui -> Path $JAVA_TOP/pag/oracle/apps/oie/webui
  • 16. Setup – Java Packages
  • 17. Setup – Java Packages  Download class files & server.xml – Save to <JDEV_USER_HOME>myclasses – E.g. C:JDeveloper9ijdevhomejdevmyclassesoracleappsapo iewebui* – Some important classes:  $JAVA_TOP/oracle/cabo/*  $JAVA_TOP/oracle/jbo/*  $JAVA_TOP/oracle/svc/*  $JAVA_TOP/oracle/apps/fnd/common/*  $JAVA_TOP/oracle/apps/fnd/framework/*  $JAVA_TOP/oracle/apps/fnd/wf/*
  • 18. Setup – Page / Region XML Files  Download xml files – Path: <APPLICATION_TOP>/mds/* – e.g. $AP_TOP/mds/oie/webui/*.xml – Save to <JDEV_USER_HOME>myprojects – e.g. C:JDeveloper9ijdevhomejdevmyprojectsoracle appsapoiewebui* – (Note: does not have to create "mds" folder)
  • 19. Setup – DBC File  Contains all the information (except password) required to establish a database connection  Download From $FND_SECURE  Save to <JDEV_USER_HOME>dbc_filessecure
  • 20. Setup – Profile Option  Personalize Self-Service Defn – must be set to Yes for personalizations to be performed  FND: personalization region Link Enabled – enable personalization links at region level.  FND: Diagnostics – An About this page link appears at the bottom of every OA Framework page
  • 21. Methods  “About this Page”  Personalization  Extension – CO Extension – VO Extension and Substitution – EO / AM Extension  Modification of existing classes (not preferred)
  • 22. Deployment  Page / Region XML Files  VO Substitutions  .class files (e.g. CO Extension)
  • 23. Deployment - Page / Region XML Files  Step 1 – import.bat – cd C:JDeveloper9ijdevbinjdevbin – import C:JDeveloper9ijdevhomejdevmyprojectsoracleappsapoie webuiOIEMAINPAGE.xml -username apps -password apps -rootdir C:JDeveloper9ijdevhomejdevmyprojects -dbconnection "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL =TCP)(HOST = pagdisc.local)(PORT=1523))) (CONNECT_DATA=(SERVICE_NAME = UAT)))"
  • 24. Deployment - Page / Region XML Files  Step 2 – Clear MDS Cache – Login as Functional Administrator
  • 25. Deployment - VO Substitutions  Step 1 - jpximport.bat – cd C:JDeveloper9ijdevbinjdevbin – jpximport.bat C:JDeveloper9ijdevhomejdevmyclassesPAGO IE.jpx -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS =(PROTOCOL=TCP)(HOST = pagdisc.local) (PORT=1523))) (CONNECT_DATA=(SERVICE_NAME = UAT)))"
  • 26. Deployment - VO Substitutions  Step 2 – Bounce mid-tier – $COMMON_TOP/admin/scripts/adstpall.sh apps/<apps_password> – $COMMON_TOP/admin/scripts/adstrtal.sh apps/<apps_password>
  • 27. Deployment - .class files  Step 1 – Upload .class files – Upload .class files to $JAVA_TOP (e.g. $JAVA_TOP/oracle/apps/ap/oie/webui)  Step 2 – Bounce apache – $COMMON_TOP/admin/scripts/ $TWO_TASK*/adapcctl.sh stop – $COMMON_TOP/admin/scripts/ $TWO_TASK*/adapcctl.sh start