Format Monetary Values Add Zeroes in Place of Blanks

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. Building a Matrix Report 25-11 Figure 25–11 Object Navigator with repeating frame and field selected 12. Click the title bar of the Report Editor to make it the active window. 13. Click the Confine Off button in the toolbar to turn Confine mode off.

14. Choose Layout Move Forward.

15. In the Paper Layout view, click the Confine On button in the toolbar to turn Confine mode back on again. 16. Click the Paper Design button in the toolbar to display the Paper Design view. Figure 25–12 Matrix report output with zeroes replacing blanks Tip: After this operation, B_1 should appear just above R_G_ SUM_SAL, as a peer rather than a child of R_G_SUM_SAL. If B_1 is still appearing as a child under R_G_SUM_SAL, repeat steps 11 through 14 until it is no longer appearing as a child of R_G_SUM_ SAL. Tip: If the 0.00 is not quite aligning with the other monetary values around it, select it and use the arrow keys to move it to the desired location. 25-12 Oracle Reports Users Guide to Building Reports

25.7 Add a Grid

Sometimes matrix reports are easier to read when they have grid lines that divide the cells from each other. For most objects, No Line is the default setting. To add grid lines, all you need to do is select the appropriate objects and give them a line color. To add grid lines 1. Open the matrix report which you previously modified to show zeroes instead of blanks.

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 Object Navigator, choose View Change Views Object Type View.

4. Select all of the following objects in the Object Navigator under the Paper Layout

node using Ctrl-click: ■ F_SUMSUM_SALPERDEPTNO ■ F_SUMSUM_SALPERJOB ■ F_SUMSUM_SALPERREPORT ■ F_SUM_SAL ■ B_1 5. Click the title bar of Paper Layout view to make it the active window. 6. In the Paper Layout view, click the Line Color tool in the tool palette, and click a block that shows the color black. 7. Click the Paper Design button in the toolbar to display the Paper Design view. You should now see a grid around all of the cells in your matrix. Figure 25–13 Matrix report output with a grid 8. Save your report as matrix1qb_your_initials.rdf

25.8 Summary

Congratulations You have successfully created a matrix report. You now know how to: ■ create a matrix report with a single-query data model. ■ create a matrix report with a multiple-query data model. ■ add summaries and format monetary values. ■ substitute zeroes for blanks in a matrix layout. ■ add a grid. Building a Matrix Report 25-13 For more information on any of the wizards, views, or properties used in this example, refer to the Oracle Reports online Help, which is available in Oracle Reports Builder or hosted on the Oracle Technology Network OTN, as described in Section 4.1.1, Using the Oracle Reports online Help . 25-14 Oracle Reports Users Guide to Building Reports