Skip to main content

Steps to Controller Extension in OAF Page

To extend the OA Framework page you have 2 options, extend the VO or extend/create the controller.

Extending a VO is on a global level and you pick this option if you want to add extra columns. Extending/creating a controller can be assigned on all levels (function/site/organization/responsibility/etc).
Screen 1
Go to Project Super User Responsibility Ã  Projects: Delivery Ã  Project List Ã   click any project link Ã go to setup Ã  Click Send Email to Team members. 
Screen 2
As per client requirement whenever user click on Send Email to Team Members link, it should display information as“alert triggered to notify team members about this project” in the project setup page. To achieve this functionality, we need to extend the standard controller and add more business logic in the custom controller and mapped it to that page.
First step click on About this page link at the bottom of this page.
To enable the "About this page" link at the bottom of each OA Framework-based page, there is profile option called FND: Diagnostics (FND_DIAGNOSTICS) set to Yes at User Level. 

Screen3
Under the controllers list, identify the controller (oracle.apps.pa.extensible.webui. ExtAttrPageRegionLayoutCO) which should be extended.
Screen 4
Connect the server through WINSCP, download the standard controller  (ExtAttrPageRegionLayoutCO.class file) from the corresponding directory path and move it to the corresponding path in the local machine as shown below
Server: /oraapps/r12idevcomn/apps/apps_st/comn/java/classes/oracle/apps/pa/extensible/webui
Local Machine E:\Jdeveloper\jdevhome\jdev\myclasses\oracle\apps\pa\extensible\webui
Screen5
Click on Personalize Page link
To enable the above link, Personalize Self-Service Defn profile is set to Y at user level
Screen 6
To do personalization of layout, click on personalize pencil button is marked as circle 
Screen7
Instead of calling the standard controller, the system should call the custom controller at site level as shown below
Screen8
To extend a standard controller(ExtAttrPageRegionLayoutCO) in the Jdeveloper, create a new custom controller named as XxExtAttrPageRegionLayoutCO
Go to Application Sources Ã right click on webui Ã General Ã Simple Files Ã  Java Class and click OK.
Screen 9
In create java class window, named as XxExtAttrPageRegionLayoutCO, provided the package directory on which this file is going to be located. Click browse button and attach the seeded controller with path at extends.
Screen 10
Open the controller code in JDeveloper by double click on XXExtAttrPageRegionLayoutCO.java under its directory path. Once the controller code opens, it will say its directory path of which this file is being located, which seeded controller it should be extended from; we can import some of the predefined class files in this class to get access of methods.
 And it has two important method called as Process Request and Process Form Request
Screen11
While loading the page, public method should be called in the process request method of this controller
Screen 12
New public method can be defined and callable statement class is used to connect the database.
 it can be called in the process request of this controller
Screen 13
Compile the java file in Jdeveloper by right click on controller and click rebuild, which generates a class file under the directory
E:\Jdeveloper\jdevhome\jdev\myclasses\xx\oracle\apps\pa\extensible\webui\XxExtAttrPageRegionLayoutCO.class
Screen14
Connect the server through WINSCP, move the controller (XxExtAttrPageRegionLayoutCO.class file) from the corresponding directory to the corresponding path in the server as shown below
Local Machine E:\Jdeveloper\jdevhome\jdev\myclasses\oracle\apps\pa\extensible\webui
Server: /oraapps/r12idevcomn/apps/apps_st/comn/java/classes/xx/oracle/apps/pa/extensible/webui
Finally bounce the apache server to see the changes in the project setup page

Comments

Popular posts from this blog

Oracle Subledger Accounting (SLA) Tables, Views

Oracle Subledger Accounting (SLA) Tables, Views Oracle Subledger Accounting Tables: TABLE NAME DESCRIPTION XLA_AAD_GROUPS The XLA_AAD_GROUPS table stores the merge dependencies analyzed during the merge analysis.  All application accounting definitions with the same GROUP_NUM must be merged together. XLA_AAD_HDR_ACCT_ATTRS The XLA_AAD_HDR_ACCT_ATTRS stores standard, system and custom sources assigned to an accounting attribute at the AAD level. XLA_AAD_HEADER_AC_ASSGNS Store the analytical criteria for the application accounting definitions. XLA_AAD_LINE_DEFN_ASSGNS This table stores the journal lines definitions for the application accounting definitions. XLA_AAD_LOADER_DEFNS_T The XLA_AAD_LOADER_DEFNS_T table is the interface table that facilitates the data transfer from data files and the database. XLA_AAD_LOADER_LOGS The XLA_AAD_LOADER_LOGS table stores the errors and logs generated by the application accounting definitions loader. XLA_AAD_SOURCES XLA_AAD_SOURCES table stores a...

Oracle Fusion Cloud: Supplier Import Process using File Based Data Import (FBDI)

 Supplier Data Migration or Upload to Oracle Fusion environment File-Based Data Import for Oracle Procurement Cloud Supplier import in oracle fusion   In this post , We will discuss about Supplier import in oracle fusion. Oracle has provided the FBDI tool to import suppliers from External  Source  to the Oracle fusion. Supplier Import in Oracle fusion we first need to  Download  the Supplier Import FDBI  templates  given by the Oracle fusion to import suppliers. Oracle has given 5 Different FBDI templates to Import supplier in Fusion. Here in this post , I will share the Complete steps for Supplier import in oracle fusion. You can refer this post for Supplier Import.   Steps for Supplier import in oracle fusion     Step1- First we need to download Supplier Data  Template  from Oracle Repository. Go to this path for Oracle Repository. ( select Based on your Cloud version) https://docs.oracle.com/en/...

Unbilled Receivables and Unearned Revenue Accounting in Oracle Projects

Unbilled Receivables and Unearned Revenue Accounting in Oracle Projects Introduction When it comes to contractual billing, invoice and revenue generation are two separate processes, which during the lifespan of a project may or may not always coincide with each other and so do the balances in revenue and receivables accounts.  This interim difference between revenue and invoice account balances is bridged using Unbilled Receivables (UBR) and Unearned Revenue (UER) Accounts. Unearned Revenue (UER) Unearned Revenue (also termed as deferred revenue or UER) signifies money received for the goods or services, which are yet to be delivered.  As per the principles of Revenue Recognition, UER is recorded as on the balance sheet unless it is converted to Revenue upon delivery of goods or services For Example XYZ Consulting Ltd. receives an annual maintenance contract of $ 12,000 on Dec 31, 2014 for the period of Jan 01, 2015 to Dec 31, 2015. At the start of the contract as of Dec 31, 2...