Skip Headers
Oracle® Reports Building Reports
10g Release 2 (10.1.2)
B13895-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

4 Visual Index

This chapter provides an overview of the example reports in this manual. For information on accessing the demo reports and the data sources, refer to "Accessing the Example Reports" and "Accessing the Data Sources".

The chapter lists the example reports contained in this manual, a brief description of each report, a pointer to the location of the steps to build the example, and an image of the sample output.

4.1 Part 1: Building Basic Reports

This part of the manual introduces and explains the basic steps on how you can build reports.

4.1.1 Building a tabular report

In this example, you will use the Report Wizard to build a simple tabular report.

Figure 4-1 Final output of the tabular report example

Description of Figure 4-1  follows
Description of "Figure 4-1 Final output of the tabular report example"

For more information on building this example, refer to Chapter 5, "Building a Tabular Report".

4.1.2 Building a mailing label report

In this example, you will use the Report Wizard to build a simple mailing label report. The steps will show you how to fill out the provided template to format your mailing labels.

Figure 4-2 Final output of the mailing label report example

Description of Figure 4-2  follows
Description of "Figure 4-2 Final output of the mailing label report example"

For more information on building this example, refer to Chapter 6, "Building a Mailing Label Report".

4.1.3 Building a form letter report

In this example, you will use the Report Wizard to build a simple form letter report. The steps will show you how to fill out the provided template to design your form letter.

Figure 4-3 Final output of the form letter example

Description of Figure 4-3  follows
Description of "Figure 4-3 Final output of the form letter example"

For more information on building this example, refer to Chapter 7, "Building a Form Letter Report".

4.1.4 Building a master/master report

In this example, you will learn how to build a master/master report, which displays at least two sets of data which are not directly related. That is, the records constituting the data are fetched using at least two separate queries. A master/master report (also called a parent/parent report) contains two or more queries with no links (parent/child relationships).

Figure 4-4 Final output of the first master/master report example

Description of Figure 4-4  follows
Description of "Figure 4-4 Final output of the first master/master report example"

Figure 4-5 Final output of the second master/master report example

Description of Figure 4-5  follows
Description of "Figure 4-5 Final output of the second master/master report example"

For more information on building this example, refer to Chapter 8, "Building a Master/Master Report".

4.1.5 Building a summary report

In this example, you will learn how to use the Summary Column tool to create a summary report.

A summary report contains at least one column whose value or values consist of a summary of other data. A column that totals sales, a column that averages a list of commissions, and a column that shows the maximum amounts found in a series of purchase orders are all examples of summary columns.

Figure 4-6 Final output of the summary report example

Description of Figure 4-6  follows
Description of "Figure 4-6 Final output of the summary report example"

For more information on building this example, refer to Chapter 9, "Building a Summary Report".

4.2 Part 2: Building Group Reports

This part of the manual explains the different kinds of report layouts.

4.2.1 Building a single-query group report

In this example, you will build a simple group left report using one query.

Group left and group above reports divide the rows of a report into "sets," based on common values in one or more of the columns, such as the department number in the preceding example. In the sample output below, notice that each department number prints only once. If the report above was not a group report, the department number would print once for each employee in the department rather than just once for the whole department.

Figure 4-7 Final output of the single-query group report example

Description of Figure 4-7  follows
Description of "Figure 4-7 Final output of the single-query group report example"

For more information on building this example, refer to Chapter 10, "Building a Single-Query Group Report".

4.2.2 Building a two-query group report

In this example, you will build a group above report using two queries.

A two-query group report appears much the same as a single-query group report. Performance is the key issue when contrasting single-query and multiple-query group reports. In most cases, single-query reports will run faster than multiple-query reports. Multiple-query reports are, however, sometimes easier to understand conceptually and easier to maintain. For example, if you are in a situation where only a few users run the report and the report returns a relatively small number of records, you might want to use multiple queries to simplify maintenance and make the data model easier to understand. If you have many users and the report is quite large, then you should try to use a single-query report.

Figure 4-8 Final output of the two-query group report example

Description of Figure 4-8  follows
Description of "Figure 4-8 Final output of the two-query group report example"

For more information on building this example, refer to Chapter 11, "Building a Two-Query Group Report".

4.2.3 Building an across group report

In this example, you will build an across group report that prints the values of a database column across the page instead of down.

Figure 4-9 Final output of the across group report example

Description of Figure 4-9  follows
Description of "Figure 4-9 Final output of the across group report example"

For more information on building this example, refer to Chapter 12, "Building an Across Group Report".

4.2.4 Building a group left summary report

In this example, you will build a summary report that groups the summaries on the left in the report output.

This report consists of master records (Name, at the upper left of the figure below), detail records (Product, Itemtot, and Orderdate, to the upper right), and summary records (Product, and Sum Total). The summary calculates totals for the details under each master record. Notice that the column Product appears twice. With Reports Builder, you can display columns any number of times.

Figure 4-10 Final output of the group left summary report example

Description of Figure 4-10  follows
Description of "Figure 4-10 Final output of the group left summary report example"

For more information on building this example, refer to Chapter 13, "Building a Group Left Summary Report".

4.2.5 Building a group left formula report

In this example, you will use the Report Wizard to set up your report and write the one query that selects all the necessary database columns. You will then manually create the two formula columns to calculate tax and order totals for each customer, then add the formula columns to your report. You will use a Group Left style report to make the data in the report easy to read.

Figure 4-11 Final output of the group left formula report example

Description of Figure 4-11  follows
Description of "Figure 4-11 Final output of the group left formula report example"

For more information on building this example, refer to Chapter 14, "Building a Group Left Formula Report".

4.3 Part 3: Building Reports with Special Formatting

This part of the manual explains how you can build reports with special formats.

4.3.1 Building a wrapped field report

In this example, you will build a break report where the line wraps on word boundaries if it is too long to fit on one line.

Figure 4-12 Final output of the wrapped field report example

Description of Figure 4-12  follows
Description of "Figure 4-12 Final output of the wrapped field report example"

For more information on building this example, refer to Chapter 15, "Building a Wrapped Field Report".

4.3.2 Building a header and footer report

In this example, you will build a report that has a page header printed in the upper margin area of every page of the report, and a footer printed at the end of the list of employee information for each department.

Figure 4-13 Final output of the header and footer report example

Description of Figure 4-13  follows
Description of "Figure 4-13 Final output of the header and footer report example"

For more information on building this example, refer to Chapter 16, "Building a Header and Footer Report".

4.3.3 Building a header with database values report

In this example, both the first and last department numbers found on each page are displayed in the page header.

Figure 4-14 Final output of the header with database values report example

Description of Figure 4-14  follows
Description of "Figure 4-14 Final output of the header with database values report example"

For more information on building this example, refer to Chapter 17, "Building a Header with Database Values Report".

4.3.4 Building a report with graphics, text, and color

In this example, you will build a report and enhance it by adding an image to the margin, a title, and a border. You will also change the look of the report by applying different fonts and text styles.

Figure 4-15 Final output of the graphics, text, and color example

Description of Figure 4-15  follows
Description of "Figure 4-15 Final output of the graphics, text, and color example"

For more information on building this example, refer to Chapter 18, "Building a Report with Graphics, Text, and Color".

4.3.5 Building a report that renumbers pages by repeating frame

In this example, you will build a report that numbers pages using the format "Page X of Y Pages". The first number (X) corresponds to the current page for each parent record (that is, each sales representative). This page number is reset to "1" for each sales representative, thus tracking the statistics of each representative separately.

Figure 4-16 Final output of the renumbering pages by repeating frame example

Description of Figure 4-16  follows
Description of "Figure 4-16 Final output of the renumbering pages by repeating frame example"

For more information on building this example, refer to Chapter 19, "Building a Report that Renumbers Pages by Repeating Frame".

4.3.6 Building an intermixed fields report

In this example, you will build a report where the group field appears between its related fields. Normally, a group (break) field appears to the left of (in group left report) or above (in group above report) its related fields.

Figure 4-17 Final output of the intermixed fields report example

Description of Figure 4-17  follows
Description of "Figure 4-17 Final output of the intermixed fields report example"

For more information on building this example, refer to Chapter 20, "Building an Intermixed Fields Report".

4.3.7 Building a report that suppresses labels

In this example, you will build a master/detail report that fetches a master record with no associated details. In the sample output below, notice how the field labels for Department 40 do not display because no detail records were found. In this chapter, you will learn how to suppress the detail information for a single record, but allow the other master/detail records to display.

Figure 4-18 Final output for the suppressing labels example

Description of Figure 4-18  follows
Description of "Figure 4-18 Final output for the suppressing labels example"

For more information on building this example, refer to Chapter 21, "Building a Report that Suppresses Labels".

4.3.8 Building a conditional form letter report

In this example, you will build two form letters from the same report, as shown in the sample output below. As you can see, the two letters share a number of features. Hence, it is more convenient to create a base form letter and then apply conditions to certain parts to determine whether they should be displayed for the current record, in this case, employees.

Figure 4-19 Final output for the first conditional form letter report example

Description of Figure 4-19  follows
Description of "Figure 4-19 Final output for the first conditional form letter report example"

Figure 4-20 FInal output for the second conditional form letter report example

Description of Figure 4-20  follows
Description of "Figure 4-20 FInal output for the second conditional form letter report example"

For more information on building this example, refer to Chapter 22, "Building a Conditional Form Letter Report".

4.3.9 Building a report with conditional highlighting

In this example, you will learn how to highlight data in your report. In this report that shows employee salaries, salaries that are greater than or equal to 10,000 are displayed in bold and in red color, and values that are between 4,999 and 10,000 are displayed in bold. Using the Conditional Formatting dialog box in Reports Builder, you can create format triggers that will change the appearance of retrieved data depending on factors you define.

Figure 4-21 Final output of the conditional highlighting report example

Description of Figure 4-21  follows
Description of "Figure 4-21 Final output of the conditional highlighting report example"

For more information on building this example, refer to Chapter 23, "Building a Report with Conditional Highlighting".

4.3.10 Building a report with dynamic graphics

In this example, you will build an employee report with a bar graph that displays monthly revenues for the company. Since the data in it changes monthly, you cannot import or draw the graph.

Figure 4-22 Final output of the dynamic graphics report example

Description of Figure 4-22  follows
Description of "Figure 4-22 Final output of the dynamic graphics report example"

For more information on building this example, refer to Chapter 24, "Building a Report with Dynamic Graphics".

4.4 Part 4: Building Matrix Reports

This part of the manual explains how you can build various kinds of matrix reports.

4.4.1 Building a matrix report

A matrix report looks like a grid. As shown in the sample output below, it contains one row of labels, one column of labels, and information in a grid format that is related to both the row and column labels. (Matrix reports are also sometimes referred to as "crosstab" reports.)

In this example, you will build a matrix report that contains three additions to the basic matrix: summaries have been added, zeroes replace non-existent values in the cells, and the cells themselves are surrounded by grid lines. Of the summaries, one sums the salaries by department, one sums them by job, and one sums them for the whole report.

Figure 4-23 Final output of the matrix report example

Description of Figure 4-23  follows
Description of "Figure 4-23 Final output of the matrix report example"

For more information on building this example, refer to Chapter 25, "Building a Matrix Report".

4.4.2 Building a nested matrix report

In this example, you will build the nested matrix report shown below. The cross product is capable of displaying every possible value for three dimensions: two down (YEAR and DEPTNO) and one across (JOB). This method does not include rows that have null values.

Figure 4-24 Final output of the nested matrix report example

Description of Figure 4-24  follows
Description of "Figure 4-24 Final output of the nested matrix report example"

For more information on building this example, refer to Chapter 26, "Building a Nested Matrix Report".

4.4.3 Building a matrix with group above report

In this example, you will build a report that shows department, job, and salary information for each employee by the year they were hired using a matrix break format.

Figure 4-25 Final output of the matrix with group above report example

Description of Figure 4-25  follows
Description of "Figure 4-25 Final output of the matrix with group above report example"

For more information on building this example, refer to Chapter 27, "Building a Matrix with Group Above Report".

4.5 Part 5: Building Reports for Business Cases

This part of the manual explains how you can build various kinds of reports to suit your business requirements.

4.5.1 Building a time series calculations report

In this example, you will build a report that calculates and displays the four-month average of purchases for each customer. You will use the Report Wizard to create a simple time series calculations report for both paper and the Web. For the JSP-based Web report, you will modify the Web source to change labels and add format masks.

Figure 4-26 Final output of the time series calculations report example

Description of Figure 4-26  follows
Description of "Figure 4-26 Final output of the time series calculations report example"

For more information on building this example, refer to Chapter 28, "Building a Time Series Calculations Report".

4.5.2 Deploying a paper report to Microsoft Excel output

In this example, you will deploy a report with the Reports Server under OC4J to display it in Microsoft Excel inside your Web browser, when you have an existing paper layout. You will generate a report to Microsoft Excel output after integrating the paper layout into a Web layout by modifying the Web source of your report.

Figure 4-27 Final output of the Microsoft Excel report

Description of Figure 4-27  follows
Description of "Figure 4-27 Final output of the Microsoft Excel report"

For more information on building this example, refer to Chapter 29, "Building a Report for Spreadsheet Output".

4.5.3 Building a report with aggregate data

In this example, you will build a report that collects and displays names of all employees whose salaries fall within the range of 0 to 999, then collects and displays all employees whose salaries fall within the range of 1000 to 1999, and so on. You will be able to modify this report to display any aggregate range you need.

Figure 4-28 Final output of the aggregate data report example

Description of Figure 4-28  follows
Description of "Figure 4-28 Final output of the aggregate data report example"

For more information on building this example, refer to Chapter 30, "Building a Report with Aggregate Data".

4.5.4 Building a check printing report with spelled-out cash amounts

In this example, you will build a check printing report with a stub and spelled-out cash amounts. The steps described in this example will help you create a PL/SQL function that returns spelled-out numerical values. You will also learn how to import an image of a preprinted form (in this case, a blank check image) and use the tools in the Paper Layout and Paper Design views to print your report on such a form. Although we use a check as the example in this report, you can use the steps to use any preprinted form with Oracle Reports.

Figure 4-29 Final output of the check printing report with spelled-out cash amounts

Description of Figure 4-29  follows
Description of "Figure 4-29 Final output of the check printing report with spelled-out cash amounts"

For more information on building this example, refer to Chapter 31, "Building a Check Printing Report with Spelled-Out Cash Amounts".

4.5.5 Building a report using a preprinted form

In this chapter, you will learn formatting techniques for printing reports on preprinted forms when you do not have access to a computer readable version of the forms. Such reports must be designed so that the data prints in exact positions on the form.

Figure 4-30 Final output of the preprinted forms example

Description of Figure 4-30  follows
Description of "Figure 4-30 Final output of the preprinted forms example"

For more information on building this example, refer to Chapter 32, "Building a Report Using a Preprinted Form".

4.5.6 Building an invoice report

In this example, you will build a report that displays several distinguishing characteristics of a typical invoice, such as customer name and address, sales order number, billing information, and billing totals.

Figure 4-31 Final output of the invoice report example

Description of Figure 4-31  follows
Description of "Figure 4-31 Final output of the invoice report example"

For more information on building this example, refer to Chapter 33, "Building an Invoice Report".

4.5.7 Building a ranking report

In this example, you will build a report that ranks data in two different ways: by count and by percentage. The upper portion displays the names and the total purchases of the top three customers; the lower portion displays the names and total purchases of those customers who constitute 75% of all sales. You can set the ranking criteria at runtime, or let them default to previously specified values.

Figure 4-32 Final output of the ranking report example

Description of Figure 4-32  follows
Description of "Figure 4-32 Final output of the ranking report example"

For more information on building this example, refer to Chapter 34, "Building a Ranking Report".

4.5.8 Building a report with a simple table of contents and index

This example is designed to teach you how to add navigational items to a large paper report. You will learn how to create a group above report, then add a simple table of contents to the beginning of your report, which will enable users to find an item by its category. You will also learn how to create an index so users can directly find a specific piece of information.

Figure 4-33 Simple table of contents

Description of Figure 4-33  follows
Description of "Figure 4-33 Simple table of contents"

For more details on building this example, refer to Chapter 35, "Building a Paper Report with a Simple Table of Contents and Index".

4.5.9 Building a report with a multilevel table of contents

This example is designed to teach you how to add a multilevel table of contents to a large paper report. You will add a table of contents based on a category and sub-category to an existing paper report.

Figure 4-35 Multilevel table of contents

Description of Figure 4-35  follows
Description of "Figure 4-35 Multilevel table of contents"

For more details on building this example, refer to Chapter 36, "Building a Paper Report with a Multilevel Table of Contents".

4.5.10 Bursting and distributing a report

In this example, you will modify a simple report we have provided to burst each section to a separate report. You will then modify a sample distribution XML file to send an e-mail to each destination with an attachment based on the separate reports. You will also send multiple e-mails to the same e-mail address with a single attachment (the entire report).

For more information on building this example, refer to Chapter 37, "Bursting and Distributing a Report".


Note:

No sample output is available for this report.

4.5.11 Building a report with multibyte characters for PDF output

In this example, you will learn how to create a report in PDF format that contains multibyte characters for the Web and paper output. You will build a multibyte character set report using UTF8. You can produce reports that display text in multibyte character sets, such as Simplified Chinese, Traditional Chinese, Japanese, Korean, and Unicode.

Figure 4-36 Multibyte character set UTF8 report in Japanese

Description of Figure 4-36  follows
Description of "Figure 4-36 Multibyte character set UTF8 report in Japanese"

For more details on building this example, refer to Chapter 38, "Building a Report with Multibyte Characters for PDF Output".

4.6 Part 6: Building Reports with PL/SQL and Java

This part of the manual explains how you can build reports using PL/SQL and Java.

4.6.1 Building a PL/SQL report

In this example, you will learn how to use an external PL/SQL library and PL/SQL within a report to modify formatting and calculate the total compensation for each employee. In the sample output below, notice the spacing between records (for example, between the record for Alexander Khoo and the record for Alexis Bull). This space is not due to a break; it is the result of using a PL/SQL procedure in a format trigger.

Figure 4-37 Final output of the PL/SQL report example

Description of Figure 4-37  follows
Description of "Figure 4-37 Final output of the PL/SQL report example"

For more information on building this example, refer to Chapter 39, "Building a Report that Includes PL/SQL".

4.6.2 Building a paper report with REF CURSORs

In this example, you will learn how to use Reports Builder's features for using REF CURSORs. To build this paper report, you will use the Data Model view to create a multiquery data model, and then use the Report Wizard to create the report layout. You will make fairly extensive manual refinements in the Data Model view.

Figure 4-38 Final output for the REF CURSORs example

Description of Figure 4-38  follows
Description of "Figure 4-38 Final output for the REF CURSORs example"

For more information on building this example, refer to Chapter 40, "Building a Paper Report with REF CURSORs".

4.6.3 Building a simple Parameter Form for a JSP-based Web report

This example is designed to teach you how to build a simple JSP Parameter Form for a Web report. You will build a simple form in HTML, then create a JSP Parameter Form based on a data model in Reports Builder. You will then learn how to link the Parameter Form with an existing JSP-based Web report, then deploy and test both the JSP Parameter Form and the Web report through your browser.

Figure 4-39 JSP Parameter Form

Description of Figure 4-39  follows
Description of "Figure 4-39 JSP Parameter Form"

Figure 4-40 JSP-based Web report based on a user parameter

Description of Figure 4-40  follows
Description of "Figure 4-40 JSP-based Web report based on a user parameter"

For more details on building this example, refer to Chapter 41, "Building a Simple Parameter Form for a JSP-based Web Report".

4.6.4 Building a report with a barcode

In this example, you will build a report using the barcode Java bean in Oracle Reports. You will build two reports: one for paper and one for the Web. The paper report shows an invoice for a single customer who has ordered multiple items from a company. The barcode indicates the tracking information for the order.

Figure 4-41 Final output of the barcode report with paper layout

Description of Figure 4-41  follows
Description of "Figure 4-41 Final output of the barcode report with paper layout"

Figure 4-42 Final output of the barcode report with Web layout

Description of Figure 4-42  follows
Description of "Figure 4-42 Final output of the barcode report with Web layout"

For more details on building this example, refer to Chapter 42, "Building a Report with a Barcode".

4.6.5 Building an accessible JSP-based Web report

In this example, you will use the properties in Oracle Reports to produce a JSP-based Web report that is accessible using assistive technology. You will learn how to modify an existing paper-based report to be accessible.

For more information on building this example, refer to Chapter 43, "Building an Accessible JSP-based Web Report".


Note:

No sample output is available for this report.

4.7 Part 7: Building Reports with Pluggable Data Sources

This part of the manual explains how you can build reports using Pluggable Data Sources.

4.7.1 Building a report with an XML pluggable data source

Reports Builder enables you to use any data source you wish. In this example, you will learn how to use the XML pluggable data source that is provided with Oracle Reports.

Figure 4-43 Final output of the XML PDS example

Description of Figure 4-43  follows
Description of "Figure 4-43 Final output of the XML PDS example"

For more information on building this example, refer to Chapter 44, "Building a Report with an XML Pluggable Data Source".

4.7.2 Building a report with a text pluggable data source

Reports Builder enables you to use any data source you wish. In this example, you will learn how to use character-delimited text as a data source.

Figure 4-44 Final output for the text PDS example

Description of Figure 4-44  follows
Description of "Figure 4-44 Final output for the text PDS example"

For more information on building this example, refer to Chapter 45, "Building a Report with a Text Pluggable Data Source".

4.7.3 Building a report with an OLAP pluggable data source

In this example, you will learn how to use the OLAP (Online Analytical Processing) PDS that is provided with Oracle Reports. You will build a report using OLAP data for a finance department. You will learn how to create a report for Web and paper layout based on OLAP data to compare budgeted vs. actual costs incurred.

Figure 4-45 Final output for the OLAP PDS example

Description of Figure 4-45  follows
Description of "Figure 4-45 Final output for the OLAP PDS example"

For more information on building this example, refer to Chapter 46, "Building a Report with an OLAP Pluggable Data Source".

4.7.4 Building a report using Oracle Express data

This example is designed to help you learn more about the Reports Builder features for Express data. You will build an Express report that summarizes the yearly projected and actual sales for each region and sales channel in a product division.

To build this report, you will use the Report Wizard to create the initial data model and report layout. You will make refinements to the data model and to the Express query. Finally, you will enhance the look of the report in the Paper Layout view and in the Paper Design view.

Figure 4-46 Final output for the Express data example

Description of Figure 4-46  follows
Description of "Figure 4-46 Final output for the Express data example"

For more information on building this example, refer to Chapter 47, "Building a Report Using Oracle Express Data".

4.8 Summary

In this chapter, each of the example reports contained in this manual are described. For more details on each of the examples, refer the location provided. For access to the latest versions of the documentation and example files, visit the Oracle Technology Network (OTN): on the Oracle Reports 10g page (http://www.oracle.com/technology/products/reports/index.html), click Getting Started to display the Getting Started with Oracle Reports home page.