Create New Fields Oracle Fusion Middleware Online Documentation Library

Building a Report that Renumbers Pages by Repeating Frame 19-9 6. In the Paper Layout view, click the F_TOTAL_PAGENO field.

7. Choose Edit Copy, then choose Edit Paste to create a new field with the same

dimensions as F_TOTAL_PAGENO next to F_TOTAL_PAGENO. 8. Drag the new field object F_TOTAL_PAGENO1 to an open area of the margin. 9. Double-click the new field object F_TOTAL_PAGENO1 to display its Property Inspector, and make the following changes: ■ Under General Information, set the Name property to F_PAGENO. ■ Under Field, set the Source property to Page Number. Because it is a duplicate of F_TOTAL_PAGENO, the Horizontal Elasticity and Visible properties are already set as desired. ■ 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. 10. Close the Property Inspector. Next, you will reference these fields in a text box to display page numbers in the format Page X of Y Pages.

19.7 Reference Fields

To reference the page number fields: 1. In the Paper Layout view, click the Line Color tool in the tool palette.

2. In the color palette, click No Line.

3. Click the Text tool in the tool palette. 4. Position the cursor in the top margin where you would like the page number to appear, and click to create a boilerplate object. 5. In the new boilerplate object, type Page F_PAGENO of F_TOTAL_PAGENO. Figure 19–7 Page number source and reference fields in top margin of report In the report output, the current page number will appear where you reference the field F_PAGENO, while the total number of pages for each master will appear where you reference the field F_TOTAL_PAGENO. If you wish, you can resize the 19-10 Oracle Reports Users Guide to Building Reports page number boilerplate text object to lengthen it to ensure that no values for F_ TOTAL_PAGENO get truncated. 6. Save and run your report. Your final report output should look something like this: Figure 19–8 Final pages renumbered by repeating frame report output

19.8 Summary

Congratulations You have successfully created a report that renumbers pages by repeating frame. You now know how to: ■ create a data model with a group above layout. ■ add a second query to create a multiquery report, and redefault the layout. ■ set properties and format fields. ■ create and reference a page number boilerplate object in your layout. 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 .