This document discusses integrating Oracle BI Publisher with Oracle Application Frameworks to allow managers and HR to print employee appraisals in PDF format from self-service pages. It describes creating a BI Publisher template, a PL/SQL procedure, and using Oracle Application Frameworks (OAF) shared regions and personalization to print the appraisal as a PDF without a concurrent request.
1. Printing PDF Documents in Self Service Made Easy by Integrating BI Publisher with Oracle
Application Frameworks
Malleswara R Mogadala
2. • Requirements
o Our HR needed a process that would allow managers
and HR to print employee appraisals in PDF format.
o HR wants to integrate this as part of Manager Self
Service and HR Professional and does not want to
create a concurrent request.
• To implement above solutions, we built BI Publisher
template and used Oracle Application Frameworks (OAF)
to print appraisal as PDF
3. Agenda
• Creating BI Publisher Template
• Creating PL/SQL Procedure
• Brief discussion about OAF
• Shared Regions in OAF
• Creating OAF Page and Controller
• Personalization
4. • Create rtf template using Microsoft word
• Define a new data definition using xml publisher
responsibility
• Define a new template definition using xml
publisher responsibility
• Develop new PL/SQL function that returns XML
data as a CLOB
5.
6.
7.
8.
9.
10. • Create a new page and include shared region as
part of page.
• Create a new Application module or use parent
page root application module
• Create a new controller class for the above created
page.
• Use personalization to Add buttons to seeded OAF
Page
11.
12. • OA Frameworks is based on MVC architecture
• MVC stands for Model View Controller. It is one of the most
popular and old architecture in Java world
• Popular Web technology like Struts is based on this
architecture
• Model represents business logic and data of the
application
• Application Module and Entity objects are the models in
OAF
13. • View formats the model and shows to user. In simple terms
it can be viewed as SQL query
• You can think view as SQL statement
• View links represents parent child relation between views
• View Object , View link are examples of view
• You can think view as SQL statement
• Controller responds to user actions and dictates the page
flow
• Controller is a java class that implements special methods
14. • Shared regions can be public. Explicitly we need to
define a region as public. If they are not defined as
public, they need can be used only in same
package of the page or region
• Public Shared regions are like public java class
• Public Shared regions can be used in any custom
pages or can be added to a seeded page using
personalization.
• Region can have it’s own controller, application
module.