Creating a break group Creating a matrix cross-product group

How To... 4-55

4.8.6 Selecting an image URL from the database

To select a URL from the database that point to an image to include in an HTML report:

1. Create a query, with a SELECT statement that selects a column containing URLs.

2. In the Data Model view, double-click the column containing the URLs to display

the Property Inspector.

3. Under the Column node:

■ Set the Read from File property to Yes. ■ Set the File Format property to Image URL.

4. If you are developing a JSP-based Web report, you will also need to add the

containsHtml attribute to the rw:field JSP tag for the column, as follows: ■ Display the Web Source view for the report. ■ Search for the rw:field tag for the column rw:field ... src=column_name ... ■ Add the containsHtml=yes attribute to specify that the fields value contains an image. For example: rw:field id=F_MYIMAGE src=MYIMAGE nullValue=nbsp; containsHtml=yes

5. To preview your report output with Web layout in a Web browser, choose

Program Run Web Layout to run the Web Source. If you have made changes to the Web Source view for JSP-based Web reports, this enables you to immediately see the effect of your changes on the output. See also Section 2.4.3, About images Section 2.8.8, About HTML and HTMLCSS output

4.8.7 Creating a break group

You can define break groups in the Report Wizard or create them manually. To create a break group manually: Notes: This procedure is for HTML output only. These steps, and the steps in Section 4.9.8.1.3, Linking an image object to a URL for paper-based reports only, allow you to include images in a wide variety of formats supported by Oracle Reports, including JPEG all types, such as Progressive JPEG and Exif JPEG, PNG, BMP, TIFF, GIF, and CGM. For paper-based reports, you can also use Insert Image to import an image from a file into the report layout for images in the following formats: TIFF, JFIF, BMP, TGA, PCX, PICT, GIF, CALS, RAS, OIF, PCD see Section 4.9.8.1.1, Importing an image . 4-56 Oracle Reports Users Guide to Building Reports 1. In the Data Model view, drag the group that contains the column at which you want to break your report down from the query object about 2 inches 5 centimeters. 2. Select the column that you want to use to divide your report for example, if you want to group a list of employee data by department number, select the department number column and drag it out of and above the group to create a new group. This is the break column. 3. Double-click the new group object to display its Property Inspector, where you can set properties for the break group. See also Section 1.7.2, About groups Section 1.3.2, About group above reports Section 1.3.3, About group left reports

4.8.8 Creating a matrix cross-product group

You can define matrix groups in the Data Wizard or create them manually.To create a matrix cross-product group using the Data Wizard:

1. In the Data Model view, right-click and choose Data Wizard.

2. On the Query page, select the Matrix query check box.

3. Follow the wizard to select the columns for the matrix groups, rows, columns,

and cells. To create a matrix cross-product group manually:

4. In the Data Model view, drag the title bar of the group object down.

5. Drag the row column and column column out of the group object into the

space to create two new groups.

6. Single-click the Cross Product tool in the tool palette.

7. Drag a box around the groups you want to include in the matrix cross-product

group. 8. If the cell group is a separate query from the matrix cross-product groups, create the appropriate links between the columns in the matrix groups and the cell group. See also Section 2.3.7, About matrix objects Section 1.3.7, About matrix reports Section 2.1.7, About nested matrix reports Section 2.1.8, About matrix with group reports Section 1.7.2, About groups Section 4.9.1.3, Creating a matrix object Section 4.5.3, Creating a nested matrix report Section 1.3.2, About group above reports Section 1.3.3, About group left reports How To... 4-57

4.8.9 Creating a data link