Redefault the Layout Oracle Fusion Middleware Online Documentation Library

Building a Report that Renumbers Pages by Repeating Frame 19-7

6. On the Template page, click Finish to display your report output in the Paper

Design view. It should look something like this: Figure 19–5 Revised report layout in Paper Design view Note that the data is still grouped by the Sales Representative with customer data listed below each Sales Representative. But now, the individual products sold to the customers are listed below each customer. The report now has multiple pages.

19.5 Set Properties and Format Fields

To set properties and format the fields of your report:

1. In the Object Navigator, click the Paper Layout node and click the Expand All

button in the toolbar.

2. Double-click the repeating frame icon next to the R_G_ENAME node to display

the Property Inspector, and set the following properties: ■ Under Repeating Frame, set the Maximum Records per Page property to 1. 3. In the Object Navigator, double-click the repeating frame icon next to the R_G_ CUSTID1 node to display the Property Inspector, and set the following properties: ■ Under Repeating Frame, set the Vert. Space Between Frames property to 0.25 to specify 0.25 inches 0.5 centimeters of vertical space between instances of the repeating frame; that is, between each customer record. ■ Under General Layout, set the Page Protect property to Yes to specify that the first instance of the repeating frame that is, the first customer record must all fit on the same logical page. amount Amount 9 Fields Labels Width 19-8 Oracle Reports Users Guide to Building Reports

4. In the Object Navigator, click the F_CREDITLIMIT node, then Ctrl-click F_

AMOUNT to select both nodes. 5. Click the Paper Design button in the toolbar to make the Paper Design view the active window, with the F_CREDITLIMIT and F_AMOUNT fields selected, and make the format changes you can also click the corresponding buttons in the toolbar: ■ choose Format Number Currency ■ choose Format Number Add Decimal Place ■ choose Format Number Add Decimal Place again, for two decimal places ■ choose Format Justify Right 6. In the Paper Design view, click the Amount label column heading, and choose Format Justify Right .

19.6 Create New Fields

To create new fields for the page numbers of the report: 1. Click the Paper Layout button in the toolbar to display the Paper Layout view. 2. In the Paper Layout view, click the Edit Margin button in the toolbar to display the margin areas of your report. You will be creating two page number fields in the top margin, as shown here: Figure 19–6 Page number source fields in top margin of report

3. Click the Field tool in the tool palette and draw a field about two characters long

in the center of your margin.

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

the following properties: ■ Under General Information, set the Name property to F_TOTAL_PAGENO. ■ Under Field, set the Source property to Total Pages, and set the Visible property to No. ■ Under General Layout, set the Horizontal Elasticity property to Variable. Hiding both this field and the field youll create below ensures that theyll appear only where you reference them. Changing the horizontal sizing to Variable ensures that the fields can expand to accommodate large page ranges. ■ Under Field, click the Page Numbering property field to display the Page Numbering dialog box: In the Reset at list, click R_G_ENAME, and verify that the Start at and Increment by values are both 1, then click OK. 5. Close the Property Inspector.