Add Summaries to the Single-Query Matrix

Building a Matrix Report 25-9 12. Click the Currency button in the toolbar. A currency symbol immediately appears next to all of the values. 13. Click the Add Decimal Place button in the toolbar twice. Two decimal places are added to the right of the decimal point. 14. Resize the fields. Click and drag the rightmost handle of one of the selected fields about 0.5 inches 1.5 centimeters to the left. 15. Click the Align Right button in the toolbar. Figure 25–9 Matrix report in Paper Design view with monetary values formatted

25.6 Add Zeroes in Place of Blanks

A matrix report displays a juxtaposition of data – in other words, the values held in common by two different categories of data. These categories are indicated by the row and column labels. The matrix displays this juxtaposition of values using a grid-like format. If the two categories have nothing in common, the grid at that point is empty. The matrix appears to be full of holes. You can fill the holes using boilerplate text. To replace blanks with zeroes: 1. Open the matrix report to which you previously added the summaries.

2. In the Object Navigator, double-click the view icon next to the Paper Layout node

to display the Paper Layout view.

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

to turn both modes on.

4. From the font lists in the toolbar, choose Arial Western, point size 10.

5. Click the Align Right button in the toolbar.

6. Click the Text tool in the tool palette.

7. Click the top of the F_SUM_SAL field about 0.75 inches 2 centimeters from its

right edge. Your objective is to create an object right on top of F_SUM_SAL. Note: Do not confuse empty spaces in the grid with null values. A null value is an actual value fetched from the database. The spaces in a matrix report are empty because nothing has been fetched to fill them. Tip: The steps that follow require some precision in the placement of objects. Hence, you may want to magnify the view to make the process easier. Click the Magnify tool and then click somewhere in the Paper Layout view. Repeat as many times as necessary. 25-10 Oracle Reports Users Guide to Building Reports 8. Type the following: 0.00 9. Click in an open area of the layout to deselect all objects.

10. In the Object Navigator, type B_1 in the Find field. You will be taken to the object

you just created. If you are viewing the Object Navigator in Ownership View View Change View Ownership View, you should see B_1 underneath R_ G_SUM_SAL and on the same level as F_SUM_SAL. Figure 25–10 Object Navigator with new object selected

11. Click R_G_SUM_SAL and then ctrl-click F_SUM_SAL so that they are both

selected and B_1 is deselected. Tip: If B_1 does not appear underneath R_G_SUM_SAL, return to the Paper Layout view, delete B_1 and try again.