Oracle Reports Building Reports 10g (9.0.4) Part Number B10602-01 |
|
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.
In this example, you will use the Report Wizard to build a simple tabular report.
For more information on building this example, refer to Chapter 5, "Building a Tabular 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.
For more information on building this example, refer to Chapter 6, "Building a Mailing Label 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.
For more information on building this example, refer to Chapter 7, "Building a Form Letter 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).
For more information on building this example, refer to Chapter 8, "Building a Master/Master 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.
For more information on building this example, refer to Chapter 9, "Building a Summary 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.
For more information on building this example, refer to Chapter 10, "Building a Single-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.
For more information on building this example, refer to Chapter 11, "Building a Two-Query 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.
For more information on building this example, refer to Chapter 12, "Building an Across Group 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.
For more information on building this example, refer to Chapter 13, "Building a Group Left Summary 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.
For more information on building this example, refer to Chapter 14, "Building a Group Left Formula 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.
For more information on building this example, refer to Chapter 15, "Building a Wrapped Field 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.
For more information on building this example, refer to Chapter 16, "Building a Header and Footer Report".
In this example, both the first and last department numbers found on each page are displayed in the page header.
For more information on building this example, refer to Chapter 17, "Building a Header with Database Values Report".
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.
For more information on building this example, refer to Chapter 18, "Building a Report with Graphics, Text, and Color".
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.
For more information on building this example, refer to Chapter 19, "Building a Report that Renumbers Pages by Repeating Frame".
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.
For more information on building this example, refer to Chapter 20, "Building an Intermixed Fields Report".
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.
For more information on building this example, refer to Chapter 21, "Building a Report that Suppresses Labels".
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.
For more information on building this example, refer to Chapter 22, "Building a Conditional Form Letter Report".
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.
For more information on building this example, refer to Chapter 23, "Building a Report with Conditional Highlighting".
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.
For more information on building this example, refer to Chapter 24, "Building a Report with Dynamic Graphics".
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.
For more information on building this example, refer to Chapter 25, "Building a 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.
For more information on building this example, refer to Chapter 26, "Building a Nested Matrix 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.
For more information on building this example, refer to Chapter 27, "Building a Matrix with Group Above 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.
For more information on building this example, refer to Chapter 28, "Building a Time Series Calculations Report".
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.
For more information on building this example, refer to Chapter 29, "Building a Report with Aggregate Data".
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.
For more information on building this example, refer to Chapter 30, "Building a Check Printing Report with Spelled-Out Cash Amounts".
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.
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".
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.
For more information on building this example, refer to Chapter 32, "Building an Invoice 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.
For more information on building this example, refer to Chapter 33, "Building a Ranking Report".
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.
For more details on building this example, refer to Chapter 34, "Building a Paper Report with a Simple Table of Contents and Index".
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.
For more details on building this example, refer to Chapter 35, "Building a Paper Report with a Multilevel Table of Contents".
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".
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.
For more information on building this example, refer to Chapter 37, "Building a PL/SQL Report".
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.
For more information on building this example, refer to Chapter 38, "Building a Paper Report with Ref Cursors".
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.
For more details on building this example, refer to Chapter 39, "Building a Simple Parameter Form for a JSP-based Web Report".
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.
For more details on building this example, refer to Chapter 40, "Building a Report with a Barcode".
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.
For more information on building this example, refer to Chapter 41, "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 character-delimited text as a data source.
For more information on building this example, refer to Chapter 42, "Building a Report with a Text Pluggable Data Source".
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.
For more information on building this example, refer to Chapter 43, "Building a Report Using Oracle Express Data".
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.
|
![]() Copyright © 2002, 2003 Oracle Corporation. All Rights Reserved. |
|