Blog / Oracle Application Blog
Steps to Controller Extension in OAF Page
the OA Framework page you have 2 options, extend the VO or extend/create the
controller.
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).
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.
click on About this page link at the
bottom of this page.
Diagnostics (FND_DIAGNOSTICS) set to Yes at User Level.
controllers list, identify the controller (oracle.apps.pa.extensible.webui. ExtAttrPageRegionLayoutCO)
which should be extended.
Screen 4
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
Machine E:Jdeveloperjdevhomejdevmyclassesoracleappspaextensiblewebui
Screen5
Personalize Page link
the above link, Personalize Self-Service Defn profile is set to Y at user level
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
standard controller(ExtAttrPageRegionLayoutCO) in the Jdeveloper, create a new
custom controller named as XxExtAttrPageRegionLayoutCO
Application Sources àright
click on webui àGeneral
àSimple Files à Java Class and click
OK.
Screen 9
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
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.
Request and Process Form Request
Screen11
the process request method of this controller
Screen 12
method can be defined and callable statement class is used to connect the database.
this controller
Screen 13
file in Jdeveloper by right click on controller and click rebuild, which
generates a class file under the directory
server through WINSCP, move the controller (XxExtAttrPageRegionLayoutCO.class
file) from the corresponding directory to the corresponding path in the server
as shown below
project setup page.














