Prerequisites for This Example Create a Matrix Group Data Model and Layout

27-4 Oracle Reports Users Guide to Building Reports Figure 27–2 Paper Design view for matrix with group above report

16. Save the report as matrixgroup_your_initials.rdf.

27.3 Add Labels and Lines for Summaries

To make your report more readable, it would be useful to add labels for the row and column summaries. It would also be nice to have lines above the column summaries to better distinguish them from the cell values. To add labels:

1. In the Paper Design view, click the Text tool in the tool palette.

2. Click in the open space just below the first department number and to the left of

the first total.

3. Enter Job Tot.:, then click in a blank area of the Paper Design view. If you

perform this step correctly, the label should now appear for all of the column summaries in the report.

4. If necessary, use the arrow keys to better align the label with the summaries.

5. Click the Text tool in the tool palette. 6. Click in the open space just above the row summaries. 7. Enter Dept. Tot., then click in a blank area of the Paper Design view. If you perform this step correctly, the label should now appear for all of the column summaries in the report. 8. If necessary, use the arrow keys to better align the label with the summaries. Tip: If you want more precise movements, turn off Snap to Grid in the View menu. It may also be helpful for this step to turn off Flex mode by clicking the Flex Off button in the toolbar. Building a Matrix with Group Above Report 27-5 Figure 27–3 Matrix with group above report output with summary labels To add lines above column summaries

1. In the Paper Design view, click the Job Tot. label that you created in the previous

section.

2. Shift-click the summaries to the right of Job Tot.

3. Click the Flex On button in the toolbar to set Flex mode on.

4. Click and drag Job Tot. and the summary fields down about 0.25 inches 0.5

centimeters.

5. Click the Paper Layout button in the toolbar to display the Paper Layout view.

6. In the Paper Layout view, note the two spaces that now appear just above the F_

SumSUM_SALPerJOB and F_SumSUM_SALPerYEAR fields. 7. Click the Line tool in the tool palette.

8. Click and drag a line in the space above F_SumSUM_SALPerJOB.

9. Repeat steps 7 and 8 to create a line above F_SumSUM_SALPerYEAR.

Figure 27–4 Layout model with lines above column summaries

27.4 Add Space Between Groups

Note that the output has no space between the groups. To add more space:

1. In the Paper Layout view, click the Confine Off and Flex On buttons in the toolbar

to set Confine mode off and Flex mode on. 27-6 Oracle Reports Users Guide to Building Reports

2. Click the Year label to select it, then Shift-click the F_YEAR field to the right to

select it, too.

3. Click and drag the F_YEAR field down about 0.25 inches 0.5 centimeters.

4. Click the Paper Design button in the toolbar to preview your report output in the Paper Design view. Figure 27–5 Matrix group above report output with added space

27.5 Create a Web Layout

Now that you have created a paper layout, suppose that you decide to have a Web layout for this report. You can quickly create a Web layout in the Report Wizard without changing your paper layout. To create a Web Layout: 1. Choose Tools Report Wizard. 2. Select Create Web Layout only. 3. Click Finish. 4. Click the Web Source view button in the toolbar and review the Web source for your Web layout.

5. Choose Program Run Web Layout to preview your Web layout.

27.6 Summary

Congratulations You have successfully created a matrix group above report. You now know how to: ■ create a matrix group above report with a single-query data model. ■ add labels and line for summaries. Notes: If Netscape 7.0 is your default browser, and the browser does not display, set the registry key HKEY_CURRENT_ USERS\Software\Oracle\Toolkit\Tkbrowser to the default browser location. Ensure that the BrowserName and the BrowserPath keys reflect the correct values. For example: BrowserName=Netscape 7; BrowserPath=C:\Program Files\Netscape\Netscape\Netscp.exe.