Create a formula column in the detail query Create a summary column in the master query

Building a Report that Suppresses Labels 21-5 ■ Under Summary, set the Function property to Count, set the Source property to DETAIL_VAL, and set the Reset At property to G_DEPTNO. Your data model now contains both the formula and summary columns, and should look like this: Figure 21–3 Data Model view with formula and summary columns 4. Save your report as suppresslabels_your_initials.rdf.

21.4 Create the report layout

In this section, you will create a default layout for your report. You will then add all the necessary layout objects for your checks.

21.4.1 Create the initial layout of your report

To create the initial layout:

1. In the Data Model view, right-click on the canvas, then choose Report Wizard.

2. In the Report Wizard, on the Report Type page, select Create Paper Layout only.

3. On the Style page, select Group Above.

4. On the Groups page, click the following groups in the Available Groups list and

click Down to specify the Print Direction and move them to the Displayed Groups list: ■ G_DEPTNO ■ G_DEPTNO1 5. On the Fields page: ■ Click the double right arrows to move all of the fields to the Displayed Fields list. ■ In the Displayed Fields list, click DEPTNO1 then click the left arrow to move this field back to the Available Fields list. ■ Do the same for the COUNT_DETAIL and DETAIL_VAL fields. 6. On the Labels page, make any desired changes to the labels. 7. On the Template page, select Predefined Template and click Blue, then click Finish to display your report output in the Paper Design view. It should look something like this: 21-6 Oracle Reports Users Guide to Building Reports Figure 21–4 Paper Design view for the suppress labels report 8. Save your report as suppresslabels_your_initials.rdf.

21.5 Add a Format Trigger to Suppress Labels

The steps in this section will show you how to add a format trigger to your report that will prevent labels from being displayed for records will null values. To create a format trigger:

1. In the Object Navigator, under the Paper Layout node, navigate to Main Section

Body M_G_DEPTNO_GRPFR R_G_DEPTNO M_G_DEPTNO1_GRPFR M_G_DEPTNO1_HDR . Or, use the Find field in the Object Navigator to find M_ G_DEPTNO1_HDR. Figure 21–5 Navigating to M_G_DEPTNO1_HDR Tip: See the image below for an example of where the frame is located in your Object Navigator. When you select the frame name in the Object Navigator, the corresponding frame will be selected in the Paper Layout view, as well.