Part1 Controller Extension In OAF :How to add code in Controller Extension on Button Click Event
We will do today controller Extension in Oracle Application OAF pages. We need Controller Extension when we want to add custom Validations and to add extra monitoring in the Standard process or to Control the Standard Page behavior then we do Controller Extensions to achieved this requirement. We can control the functionality of the Page through Controller codes and if we want to control the Standard OAF pages then we do OAF Controller Extensions.
Test Case:- In this example , I will do Controller Extension in the Expense Reports Home Page. Suppose your Business requirement is that When ever user will withdraw his expense report then it will create history in the Custom table that how many times this particular Expense Report's Withdraw and on which date. So lets start to do this.
Controller Extension In OAF :How to add code in Controller Extension on Button Click Event
Step1:- First Go to your OAF page in the application , in which you will Controller Extension.
This is the Page in which we will do Controller Extension. you can see the Withdraw button in the Right side of the Page for Every Report.
Step2:- To see the Properties of this Page and to know which controller is working behind this Page. for this we need to go to 'About this Page' in the Bottom of the Page.
Step3:- Click on the Expand All option and in the Controller Section you can see the Controller Name.
Step4:- Now you know the Controller Name but you also need to get the Location of the Controller in Oracle Application to so Controller Extension.
This is the Location of the Controller under Java_Top under which you will do Extension.
Step5:- Now you get to know that where is your Standard Controller is Placed in the Oracle application Under Java_Top.
Then you Need to go to Server Under Java_Top then Under Java_Top follow the same path 'oracle/apps/ap/oie/webui/' and copy the 'TrackExpesneReportsCO' from Server to your Local Desktop.
One Important Thing.
You need to create the same path in your JDev folder under' 'jdevhome'
Under JdevHome there is MyProjects' folder under this folder you have to Create same folder structure like oracle/apps/ap/oie/webui/' and then this copied file 'TrackExpesneReportsCO' in this Location.
The rule is you have to create same folder structure like the Folder Structure created for The Standard Controller in the Application server Java_Top.
Step6:-This is the steps you have to implement before doing Start Extension in the JDeveloper.
Step7:- Now open the JDeveloper.
Step8:- Now we will create OA Workspace and Project to do Controller Extensions.
Step9:- Give the Name of OA Workspace. Click Ok.
Step10:- Now Give the Name of the Project same like OA workspace.
Package Path:- Choose the same like Standard Controller but choose the application Top start with xx like this this change 'xxap'.
Step11:- Then Finish this Project.
Step12:- Now you can see your OAF Project has been completed. Now we will do Controller Extension under this Project.
Due to the Length of this Topic , I will split this Topic two Posts. Please find the Second Part of this Post as below
Part2 url:- https://rpforacle.blogspot.in/2018/03/oaf-controller-extension-in-oaf-how-to-add-oaf-code-in-controller-extension-on-button-click-event.html
1 comments:
your blog is really informative and helpful for me. Thanks for sharing information
Oracle Fusion Financials Online Training
Oracle Fusion Technical Online Training
Post a Comment