Skip Headers

Oracle Reports Building Reports
10g (9.0.4)

Part Number B10602-01
Go To Documentation Library
Home
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to next page

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

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

Text description of orbrtab_fin.gif follows.

Text description of the illustration orbrtab_fin.gif

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

Text description of orbrmail_space.gif follows.

Text description of the illustration orbrmail_space.gif

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

Text description of orbrformletter_fin.gif follows.

Text description of the illustration orbrformletter_fin.gif

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

Text description of Masterb_fin1.gif follows.

Text description of the illustration Masterb_fin1.gif

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

Text description of Masterb_fin2.gif follows.

Text description of the illustration Masterb_fin2.gif

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

Text description of summaryb_fin.gif follows.

Text description of the illustration summaryb_fin.gif

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

4.2 Part 2: Building Group Reports

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 example above. 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

Text description of grp_lft2_fin.gif follows.

Text description of the illustration grp_lft2_fin.gif

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

Text description of grp_abv2_fin.gif follows.

Text description of the illustration grp_abv2_fin.gif

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

Text description of orbracross_fin.gif follows.

Text description of the illustration orbracross_fin.gif

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

Text description of masdtmsb_fin.gif follows.

Text description of the illustration masdtmsb_fin.gif

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

Text description of orbrformula_fin.gif follows.

Text description of the illustration orbrformula_fin.gif

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

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

Text description of orbrwrap_fin.gif follows.

Text description of the illustration orbrwrap_fin.gif

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

Text description of headfoot_fin.gif follows.

Text description of the illustration headfoot_fin.gif

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

Text description of headingb_fin.gif follows.

Text description of the illustration headingb_fin.gif

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

Text description of orbrgraphics_fin.gif follows.

Text description of the illustration orbrgraphics_fin.gif

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 (i.e., 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

Text description of pagenum_wiz6.gif follows.

Text description of the illustration pagenum_wiz6.gif

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

Text description of intermx_fin.gif follows.

Text description of the illustration intermx_fin.gif

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

Text description of suppress_fin.gif follows.

Text description of the illustration suppress_fin.gif

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

Text description of cndfrm_out1.gif follows.

Text description of the illustration cndfrm_out1.gif

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

Text description of cndfrm_out2.gif follows.

Text description of the illustration cndfrm_out2.gif

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

Text description of condhigh_fin.gif follows.

Text description of the illustration condhigh_fin.gif

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

Text description of dyngraph_fin.gif follows.

Text description of the illustration dyngraph_fin.gif

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

4.4 Part 4: Building 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

Text description of matrix_fin.gif follows.

Text description of the illustration matrix_fin.gif

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

Text description of nestmat_fin.gif follows.

Text description of the illustration nestmat_fin.gif

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

Text description of matgrp_fin.gif follows.

Text description of the illustration matgrp_fin.gif

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

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

Text description of timeseries_web.gif follows.

Text description of the illustration timeseries_web.gif

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

4.5.2 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, etc. You will be able to modify this report to display any aggregate range you need.

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

Text description of aggregate_pap.gif follows.

Text description of the illustration aggregate_pap.gif

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

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

In this chapter, you will build a check printing report with a stub and spelled-out cash amounts. The steps described in this chapter 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 pre-printed 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 pre-printed form with Oracle Reports.

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

Text description of invoice_fin.gif follows.

Text description of the illustration invoice_fin.gif

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

4.5.4 Building a report using a pre-printed form

In this chapter, you will learn formatting techniques for printing reports on pre-printed 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-29 Final output of the preprinted forms example

Text description of orbrpreprint_finfin.gif follows.

Text description of the illustration orbrpreprint_finfin.gif

For more information on building this example, refer to Chapter 31, "Building a Report Using a Pre-Printed Form".

4.5.5 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-30 Final output of the invoice report example

Text description of invoice_fin.gif follows.

Text description of the illustration invoice_fin.gif

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

4.5.6 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-31 Final output of the ranking report example

Text description of rank_fin.gif follows.

Text description of the illustration rank_fin.gif

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

4.5.7 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, that 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-32 Simple table of contents

Text description of fotoc_toc.gif follows.

Text description of the illustration fotoc_toc.gif

Figure 4-33 Index

Text description of fotoc_idx.gif follows.

Text description of the illustration fotoc_idx.gif

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

4.5.8 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-34 Multilevel table of contents

Text description of multoc_toc.gif follows.

Text description of the illustration multoc_toc.gif

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

4.5.9 Bursting and distributing a report

In this example, you will modify a simple report we've 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 36, "Bursting and Distributing a Report".


Note:

No sample output is available for this report.


4.6 Part 6: Building Reports with 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 (e.g., 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-35 Final output of the PL/SQL report example

Text description of plsql_fin.gif follows.

Text description of the illustration plsql_fin.gif

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

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-36 Final output for the ref cursors example

Text description of orbrref_66.gif follows.

Text description of the illustration orbrref_66.gif

For more information on building this example, refer to Chapter 38, "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 via your browser.

Figure 4-37 JSP Parameter Form

Text description of simplejsp_rpf.gif follows.

Text description of the illustration simplejsp_rpf.gif

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

Text description of simplejsp_fin.gif follows.

Text description of the illustration simplejsp_fin.gif

For more details on building this example, refer to Chapter 39, "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-39 Final output of the barcode report with paper layout

Text description of orbrbc_finp.gif follows.

Text description of the illustration orbrbc_finp.gif

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

Text description of orbrbc_finweb.gif follows.

Text description of the illustration orbrbc_finweb.gif

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

4.7 Part 7: Building Reports with 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-41 Final output of the XML PDS example

Text description of orbrxml_fin.gif follows.

Text description of the illustration orbrxml_fin.gif

For more information on building this example, refer to Chapter 41, "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-42 Final output for the text PDS example

Text description of orbrtext_fin.gif follows.

Text description of the illustration orbrtext_fin.gif

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

4.7.3 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-43 Final output for the Express data example

Text description of exprepfi.gif follows.

Text description of the illustration exprepfi.gif

For more information on building this example, refer to Chapter 43, "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 Reports area on the Oracle Technology Network (http://otn.oracle.com/products/reports/), then navigate to the Getting Started with Oracle Reports Web site.


Go to previous page Go to next page
Oracle
Copyright © 2002, 2003 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Table Of Contents
Contents
Go To Index
Index