📝 Chapter 6: Designing RTF Templates Using Word and Template Builder (Global HR Example)
In this chapter, you'll learn how to use Microsoft Word with BI Publisher Template Builder to create professional report layouts. We'll design an RTF layout using HR data—specifically, Employee Details by Department.
✅ 1. Prerequisites
Before starting, ensure:
-
Microsoft Word is installed
-
BI Publisher Desktop Plugin (Template Builder) is installed
-
Download from:
https://www.oracle.com/middleware/technologies/bi-publisher-downloads.html
-
-
You’ve created a Data Model (from Chapter 5) with Global HR data
✅ 2. Example Data Model: Employee Details
This example assumes you have a data model (Employee_Details_DM
) with the following SQL:
✅ 3. Download Sample XML for Layout Design
-
Open the data model in BI Publisher.
-
Go to the Data tab.
-
Click View to execute.
-
Once results appear, click Export > Save As Sample Data.
-
This will download an
.xml
file — save it locally (e.g.,EmployeeSample.xml
)
✅ 4. Designing the RTF Layout in Word
🧩 Step-by-Step:
-
Open Microsoft Word
-
Click on the BI Publisher tab
-
Click Load XML Data → Load
EmployeeSample.xml
-
Click Insert > Table Wizard
-
Data Source:
/DATA_DS
-
Group by:
department_name
-
Columns:
-
full_name
,person_number
,job_name
,position_name
,email_address
,phone_number
,hire_date
-
-
-
Choose formatting options (borders, shading, etc.)
-
Add page headers, footer with date, and logo if needed
✨ Optional Enhancements:
-
Use Conditional Formatting:
-
Example: Highlight rows where
hire_date < SYSDATE - 365
(tenure over a year)
-
-
Add totals/counts using
BI Publisher > Insert > Function
✅ 5. Preview and Test the Layout
-
Click Preview in Word (choose PDF or HTML)
-
Ensure the data populates correctly and the formatting looks good
-
Save the file as:
Employee_Details_Template.rtf
✅ 6. Upload RTF Layout to Report Definition
-
Go to Catalog > Open your report
-
Click Edit Report
-
In the Layout section, click + > Upload RTF
-
Name it:
Employee Details Layout
-
Select output formats: PDF, Excel, RTF
-
Save and run the report to validate
✅ 7. Summary
Task | Tool Used |
---|---|
Design Layout | Word + Template Builder |
Load Data | Sample XML from BIP |
Format & Group Data | Table Wizard |
Upload to Fusion | Report Editor |
With this, you've created a dynamic, styled RTF layout for a Global HR report!
🔹 Next Steps
Previous Chapter: Chapter 5: Creating Data Models from Scratch
Next Chapter: Chapter 7: Advanced RTF Layout Techniques (Global HR Examples)
📌 Next Chapter Preview:
Chapter 7: Advanced Layout Techniques (Conditional Logic, Totals, Barcodes)
-
Apply IF conditions
-
Use for-each loops
-
Insert images, barcodes, dynamic tables
No comments:
Post a Comment