Professional Documents
Culture Documents
OA Framework Personalization
Extensions in OA Framework
Q&A
Function: One can define functions and can define granular level personalization based
upon these functions.
Site: Personalizations that affect all users with access to the given application
component.
Operating Unit: Personalizations that affect all users with access to the given operating
unit.
Responsibility: Personalizations that affect all users with access to the given
responsibility.
You will see the following page come up. Select the Complete View Radio button.
BC4J Extensions are again divided into three types and they are:
VO Extension
AM Extension
EO Extension
Oracle does not recommend that customers extend controller objects associated with regions or webbeans in
shipped E-Business Suite product pages.
Controller class (oracle.apps.fnd.framework.webui.OAControllerImpl) methods should effectively be considered
private, since their implementation is subject to change. Controller extensions are therefore not considered to be
durable between upgrades.
If it is absolutely essential to handle custom form submit events on a shipped product page,
processFormRequest() is the only method that should be overriden in a controller class, although the risks
outlined above still apply.
If you observe in the above image User Information is highlighted which contains Email
Address and Note. Here our requirement to add User Name field into the User Information. It
means if we logged in with Operations user then that User Name must display in User
Information.
If you observe, according to the requirement, we need to display the User Name when the page
is loaded. It means we need to write the code in the processRequest of Controller class.
18 7/26/2017 KPIT Technologies Limited OA Framework Personalizations
Controller Extension Steps :
Step 1 : First to display the user name we need to create one item, so therefore create one item for that Select
Personalize User Information in OAF page.
After that select create Item image as shown in the below image:
So therefore finally we came to know that InvitationCO is the Controller which we need to extend.
Note that while in Project Wizard you must give the same package name which you will find in about this page. For
example see the aboveimage.
After finishing project, create the dummy page for structure.
In Categories extract General and then select Simple Files. Select Java Class in Items. The below image shows the Java
Class Selection process.
Here Like VO and AM extension no need to run the Import script. But to activate the CO
you must follow the below step wise process.
For example our class file is located in the following directory structure.
xxcoextension/oracle/apps/pos/registration/webui/InvitationCOEx.class Now
replace the slash (/) with the dots and remove .class, for example see the below one:
xxcoextension.oracle.apps.pos.registration.webui.InvitationCOEx Finally the
controller path is ready and that we need to give in site level (site level is an example
we are taking here, you can take any other level too if required to restrict).
We can identify the page when we click on about this page, we can find one path
which contains page name.
From the above Application Top we need to copy the RegSuppUserPG.xml page, note
that the path may be different in your environment so check the path properly or
concern the DBA for your required file to copy.
After copying open the JDeveloper so that we can see the copied page if JDeveloper is
already open then refresh the JDeveloper so that the page will appear automatically.
Select the page and we can see VO Name in the page structure.
After clicking next to the query remove the existing SQL Query and place the modified SQL Query in which we added
a coloumn vendor_type_lookup_code and finish the VO creation process.
After adding into the project properties now we need to move the project folder from MyClasses to the server
environment Classes Directory. Be cautious while moving the files from desktop to the server. Here no need to
replace the existing files at all for the first time.
After that check whether the Extended VO is available or not in the About this page once the extended VO appears
then now click on the LOV option of Supplier Name.
In the above image you might have observed that Email Address field is empty. So therefore here
our requirement is we want the default email address as training@newtonapples.com.
To see the Attributes, click on the button called New From Table..,
Step 4: After creating EO open the Java File and add the two lines in create method. In
the attached code you need to add only two lines, line numbers 40 and 41. No need to
do any changes for the remaining entire code.
After creating employee here obviously we will click on Apply button to add employee
details but whenever we click on Apply button we are creating employee that is fine
and hence there is no Table to track which user created particular Employee.
So therefore here our requirement is to maintain the track Record of User Information,
for Example if we logged in with user name as Operations then after creating
Employee we need to maintain such information like User Operations created so and
so employee.
Step 2: Identify the AM from the page. That means we need to identify the AM which
we want to extend. For that go to About This page and then extract Business
Component Reference Details.
From the above package now we can give the package for project as follows:
xxamextension.oracle.apps.fnd.framework.toolbox.labsolutions.webui
The below image shows the sample project name and Default package name.
Rebuild the code and check the code rebuild is successful without any errors.
Go to the path in "FND: Personalization Document Root Path" and run " tar -cvf
xxPersonalizations.tar ./* ".
Transfer the xxPersonalizations.tar to destination in Binary mode.
www.kpit.com