You are on page 1of 45

Session ID:

Create an OAF Personalizations by


VO Extensions to Restrict Supplier 10989
Address Records
Prepared by:
Sayeed Mohammad
Technical Solutions Specialist III
Hillsborough County Court Clerk
& Comptroller
Remember to complete your evaluation for this session within the app!
April 10th, 2019
Hillsborough County Court Clerk & Comptroller
• Court Clerk is Pat Frank, serving her fourth term
• Clerk’s Office is Comptroller for Hillsborough County, Florida
• Manage the County’s accounting and generate the Financial Statements
• Process payments on behalf of the County
• Report the County’s 1099 filings
• Responsible for Oracle Supplier data entry
– Almost 200,000 Suppliers; 40,000 active
• Oracle footprint
– Over twenty applications
– Two Ledgers
– Three Orgs
Agenda
• Project Overview
• Objective
• Requirement
• Solution
– Finding the OA Page Path
– Finding the correct View Object (VO) Name and Details
– Required files for VO Extension
– Directory Path creation in Local Drive
– Moving the files to local drive
– JDeveloper
– VO Extension
– Implementing the VO Extension
– OA Personalization
Project Overview - Footprint
• Oracle Application Level: 12.1.3

• Modules: Financials, Inventory, HR and Payroll

• Database: 11.2.0.4.0
Objective
• The Purchasing department requires Supplier maintenance access in order to promote
‘one-stop’ service and an enhanced customer experience to iSuppliers.

• The Payables department requires data related to payments and tax reporting be
maintained by a separate Supplier Administration team.

• Create an OAF Personalization by VO Extensions to Restrict Supplier Records


Requirement
• We have 3 agencies share Oracle EBS 12.1.3
– Board, Clerk and City

• Supplier Address records are visible to all agencies, as there is no org_id at the
address level

• Board will maintain (Update, Manage or Delete) their own supplier address
records but cannot alter addresses used for payment or reporting.

• Supplier Address Attributes


– The Board Supplier Address names start with BOCC as first 4 characters
– Only addresses used for purposes other than payment should be editable
Solution
• Create separate responsibility for Board.

• Create VO extensions

• Page Personalizations
Supplier Address Book Page Before changes
About This Page

Click
“About
this
Page” to
get the
VO and
Page
details
About This Page – Page Path
About This Page – Finding the VO
• Click on the VO name to get the VO path where we can find the VO from server
to extend
VO Details
• You can see the query and available attributes in this screen.
• But better to get the query from VO in JDeveloper
Available Attributes
View Object (VO) Files from Server
• Copy the folder from server to local drive with exact same path
$JAVA_TOP/oracle/apps/pos/supplier
• Note: Oracle’s known issue extending this VO.
• Apply Patch 21047856
VO File Path in Server and Local Drive
New OA Workspace in JDeveloper 10.1.3.3.0.3
• Create new workspace
OA Workspace Details
Project Details
• Fill the Project Name and leave default values in rest of the fields
JDeveloper VO Extension Steps
• Right click on Project and select New
JDeveloper Steps for VO Extension
• Select ADF Business Component and View Object in items
VO Extension Details
• Fill the Package Name, where you are creating this VO Extension and
Extension name, Then click on Browse on Extends field
Selecting Seeded VO to Extend
VO Extension Details
VO Extension Details
• Select default values from steps 2 to 6
VO Extension Details
• Check the Check Box “Generate Java File” and click Finish
Getting the Query from VO
• Copy the VO query from VO into toad or SQL developer and modify query
according to the requirements
Creating Transient Variable in VO Extension
• Create a Boolean variable in the Attributes
Java Code Modifications
Details of Java Code
Steps After Java code Modification in JDeveloper
• After code modification, compile the code (Make and Rebuild)
Errors and Warnings in JDeveloper
Implementation
• Save All and move the code to appropriate directory in the server
• Import the project into test instance with import command, shown below

• jpximport
C:\MY_JDEVELOPER\jdevhome\jdev\myprojects\xxAddrBkVOexNP3Proj.jpx -
userId 1 -username XXXX -password XXXX -dbconnection
"(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YE
S)(ADDRESS=(PROTOCOL=tcp)(HOST=vmohshctf009.oracleoutsourcing.com
)(PORT=XXXX)))(CONNECT_DATA=(SID=DHCTFI)))"

• Bounce the Apache and BC4J server.


• Re-start the application, navigate to the page to see the VO extension and the
new attributes
Changes Viewed from About This Page
• After the import and bounce, open the Application
OA Page Personalizations
• Now apply the personalization on the buttons
OA Page Personalizations
• Click the pencil to edit properties
OA Page Personalizations
• Modify Render property of “Manage Sites”
– At responsibility Level: change to SPEL and paste the below code:
${oa.BuyerAddrBookVO.xxshowbuttons}
OA Page Personalizations
• Change Render property at Responsibility Level: change to SPEL and paste
the code: ${oa.BuyerAddrBookVO.xxshowbuttons}
Supplier Address Book Screen After Personalization
• Because the Update icon still visible, we have another solution for this
Update Address Details Page Personalization
• So we will need to also personalize the below Update Address page
Update Address Details Page Personalization
• Change Render Property at Responsibility Level: change to SPEL and paste
the code: ${oa.AddressDtVO.XXSHOWFIELD}
Update Address Details Page Personalization Results
• Address Details page after personalization
Error Page when Personalizing
Managing Page Personalization
Deleting or Deactivating Personalization
Sayeed.Mohammad@hillsclerk.com

Session ID:

10989

Remember to complete your evaluation for this session within the app!

You might also like