06 RTF Templates
06 RTF Templates
06 RTF Templates
Table of Contents
Table of Contents........................................................................................................................ 1
Methods of RTF Template Creation.............................................................................................2
What Is Oracle BI Publisher Desktop?.........................................................................................2
Basic Method............................................................................................................................... 3
Finishing the Basic Method..........................................................................................................4
Viewing the Report...................................................................................................................... 4
Viewing the Report...................................................................................................................... 5
Viewing the Report...................................................................................................................... 6
Viewing the Report...................................................................................................................... 7
Form Field Method....................................................................................................................... 8
Loading the XML Data.................................................................................................................9
Loading the XML Data.................................................................................................................9
Inserting the Field...................................................................................................................... 10
Progress So Far......................................................................................................................... 11
Creating Your Table................................................................................................................... 12
Inserting Table/Form.................................................................................................................. 13
Selecting G_RESPS.................................................................................................................. 14
Dropping the Nodes................................................................................................................... 14
Your Finished Template............................................................................................................. 15
Previewing Your Report............................................................................................................. 15
Viewing the Report.................................................................................................................... 16
Designing the RTF Template.....................................................................................................17
Premarkup Layout..................................................................................................................... 17
Student Lab............................................................................................................................... 17
Extract boilerplate text into an XLIFF translation file and test translations.
All of these steps, and many others, can be performed manually. Oracle BI Publisher
Desktop simplifies the common tasks associated with creating an Oracle BI Publisher
RTF template.
Oracle BI Publisher Desktop is available for download from MetaLink. Use patch
#4461378 (or later as directed) to obtain the Oracle BI Publisher Desktop program.
Basic Method
Start with the User Listing Start 2.rtf file. Edit the RTF template using the basic method to
place the fields.
In the template, you replace all the text within < > (angle brackets) with the
appropriate Oracle BI Publisher tags.
By default, the User Listing Start 2.rtf file is kept at the following directory path:
D:\Program Files\Oracle\XML Publisher Desktop\samples\RTF templates\User Listing\
By default, you use Microsoft Word to create and edit your RTF files. But, any program capable
of creating and editing RTF files can be used for the Basic method. The Form Field method
relies upon the Oracle BI Publisher Desktop plug-in that works only with Microsoft Word 2000
and later.
Enter <?END_DATE?> and <end for-each?> in the End Date column of the
table.
Why do you use the Template Viewer? In most cases, if you have to put in fields using the Basic
method, you are doing so for one of three reasons.
1.
2.
You are using an editor other than Microsoft Word 2000 or later.
3.
Most users do not use the Basic method by preference. They do so either because they are not
using Microsoft Word, or they are using advanced tags. Because you are not using any
advanced tags in this exercise, assume that you are not using Microsoft Word.
4
If you are using Microsoft Word, you could view the results of your report directly within Oracle
BI Publisher Desktop. But the Template Viewer reproduces the same capabilities, and it has
capabilities that are not available to you via Microsoft Word, namely viewer PDF templates.
If you have done everything correctly, you should see Adobe Acrobat Reader open with the
output of your report. If not, you have done something in error, and you need to return to
Microsoft Word to edit your file until it produces the correct output.
By default, the User Listing Start 2.rtf file is kept at the following directory path:
D:\Program Files\Oracle\XML Publisher Desktop\samples\RTF templates\User Listing\
By default, we are using Microsoft Word to create and edit our RTF files. But, any program
capable of creating and editing RTF files can be used for the Basic Method. The Form Field
Method will rely upon the Oracle BI Publisher Desktop plug-in that only works in Microsoft Word
2000 and later.
2. Choose Insert > Field from the Oracle BI Publisher Desktop menu.
10
Progress So Far
1. Your RTF template should look similar to the following at this point:
11
12
Inserting Table/Form
3. This opens the Insert Table/Form window.
13
Selecting G_RESPS
4. Click G_RESPS in the Data Source pane, and drag it to the Template pane.
5. You are prompted to select Drop Single Node, Drop All Nodes, or Cancel. Select
Drop All Nodes to grab the four fields beneath G_RESPS.
14
7. Click the OK button in the Insert Table/Form window to save your work, and return
to the template.
9. Notice that it has created the table, created the fields in the table, and created the
<for-each> looping mechanism to loop through all the data.
15
If you have done everything correctly, you should see Adobe Acrobat Reader open with the
output of your report. If not, you have done something in error, and you need to return to
Microsoft Word to edit your file until it produces the correct output.
Your report should look exactly the same whether you produce it from within Microsoft Word or
you use the Template Viewer.
16
Premarkup layout
Add markup
Template features
Conditional formatting
Page-level calculations
Data handling
Premarkup Layout
Oracle BI Publisher converts all formatting that you apply in the word-processing
program to XSL-FO. But, some features of your word processor may not be mappable to
XSL-FO.
Student Lab
Complete the files using the Basic and Form Field methods outlined in the
lesson. Test both methods via Template Viewer and within Microsoft Word
to ensure that everything works.
19