Create a format trigger

Building a Paper Report with a Multilevel Table of Contents 36-7 Figure 36–3 Data model for the multilevel TOC report 7. Save your report.

36.5 Create a Report Block to Display the Table of Contents

The steps in this section will show you how to create a group above report block in the Header section of your report. This report block will display two levels of headings in the table of contents. You will also add a field to your layout to display the page number where each heading is found in report. To create a group above report block in the Header section: 1. In the Paper Layout view, click the Header Section button in the toolbar. 2. Click the Report Block tool in the tool palette, then draw an area about 6 inches 15 centimeters wide and 1.5 inches 4 centimeters high. Release the mouse button to display the Report Block Wizard.

3. In the Report Block Wizard, on the Style page, select Group Above, then click

Next .

4. On the Groups page, click G_MAIN_TOPIC, then click Down to move it to the

Displayed Groups list.

5. In the Available Groups list, click G_1, then click Down to move it to the

Displayed Groups list.

6. Click Next.

7. On the Fields page, click each of the following fields in the Available Fields list,

then click the right arrow to move them to the Displayed Fields list, then click Next . ■ MAIN_TOPIC ■ SUB_TOPIC ■ PAGE 8. On the Labels page, clear all the labels, then click Next. 9. On the Template page, click Finish. Your report block displays in the Paper Layout view: 36-8 Oracle Reports Users Guide to Building Reports Figure 36–4 Paper Layout view of the Header Section

10. Click the Field tool in the tool palette and create a field above the PAGE field, next

to the F_MAIN_TOPIC field.

11. Double-click the new field object to display the Property Inspector, and set the

following properties: ■ Under Field, set the Source property to Subcategory_Page. ■ Under Summary, set the Reset At property to G_1. 12. Save your report.

36.6 Run Your Multilevel Table of Contents Report to Paper

The steps in this section will show you how to make a few modifications in the Paper Layout view and run your report. To modify and run your report to paper: 1. In the Paper Layout view, change the font of the field F_1 to Arial, Bold. 2. Change the Fill color to any color for example, Beige, and the Line Color to No Line Color .

3. Click the Run Paper Layout button in the toolbar.

The table of contents displays on the first page of the report, and looks something like the following: Note: To generate the table of contents TOC, you must click the Run Paper Layout button. If you click the Paper Design view button, the change of format order will not take effect, thus the TOC will not be generated.