Insert Invoice Information Oracle Fusion Middleware Online Documentation Library

Building an Invoice Report 33-9 Set Name property to F_POSTAL1, Source property to C_POSTAL_CODE. ■ Date : Set Name property to F_TODAY, Source property to Current Date, and Format Mask property to MMDDRR. ■ Page : Set Name property to F_PAGE, Source property to Page Number, and Page Numbering property in the Page Numbering dialog box to Reset at: R_ ORDER. ■ Purchase Order Number : Set Name property to F_ORDER_NO, Source property to ORDER_ID. ■ Sales Order Number : Set Name property to F_ORDER_NO1, Source property to ORDER_ID. ■ Customer Number : Set Name property to F_CUST_NO, Source property to CUSTOMER_ID. ■ Due Date : Set Name property to F_DUE_DAY, Source property to CF_DUE_ DATE. ■ Salesperson 2 fields, one for first name, one for last name: Set Name property to F_SALES_REP_FNAME, Source property to CUST_ FIRST_NAME. Set Name property to F_SALES_REP_LNAME, Source property to CUST_ LAST_NAME. ■ Customer Contact : 2 fields, one for first name, one for last name: Set Name property to F_SALES_REP_FNAME1, Source property to CUST_ FIRST_NAME. Set Name property to F_SALES_REP_LNAME1, Source property to CUST_ LAST_NAME. ■ Ship Date : Set Name property to F_TODAY1, Source property to Current Date, and Format Mask property to MMDDRR. ■ Item No. : Set Name property to F_ITEM_NO, Source property to LINE_ ITEM_ID. With the field selected, click the Align Right button in the toolbar. ■ Description column has no heading: Set Name property to F_ITEM_DESC, Source property to TRANSLATED_DESCRIPTION. ■ Quantity Ordered : Set Name property to F_QUANTITY, Source property to QUANTITY. With the field selected, click the Align Right button in the toolbar. ■ Unit Price : Set Name property to F_UNIT_PRICE, Source property to UNIT_ PRICE, and Format Mask property to NNN,NN0.00. With the field selected, click the Align Right button in the toolbar. ■ Extended Amount : Set Name property to F_ITEM_PRICE, Source property to O_QUANTITY_O_UNIT_PRICE, and Format Mask property to NNN,NN0.00. With the field selected, click the Align Right button in the toolbar. Note: This example assumes that the customer contact is same person as the sales representative. 33-10 Oracle Reports Users Guide to Building Reports ■ Subtotal : Set Name property to F_SUB_TOTAL, Source property to CS_SUB_ TOTAL. ■ Total : Set Name property to F_TOTAL, Source property to CS_TOTAL. 3. Click the Frame tool in the tool palette, and draw a frame around the following fields to group them: ■ Bill To : F_FIRST_NAME, F_LAST_NAME, F_STREET, F_CITY, F_STATE, and F_POSTAL. Set the Frames Name property to M_BILL_TO. ■ Ship To : F_FIRST_NAME1, F_LAST_NAME1, F_STREET1, F_CITY1, F_ STATE1, and F_POSTAL1. Set the Frames Name property to M_SHIP_TO. ■ Salesperson : F_SALES_REP_FNAME and F_SALES_REP_LNAME. Set the Frames Name property to M_SALES_REP. ■ Customer Contact : F_SALES_REP_FNAME1 and F_SALES_REP_LNAME1. Set the Frames Name property to M_CUST_CONTACT. ■ Item list : F_ITEM_NO, F_ITEM_DESC, F_QUANTITY, F_UNIT_PRICE, and F_ITEM_PRICE, including all the empty space below these fields to the bottom border of the list area. Set the Frames Name property to M_ORDER_ LIST. This frame is used to position and size the detail item list repeating frame. Note : Using a frame ensures that other objects will not be pushed by the variable horizontal size of the name fields. 4. Click the Repeating Frame tool in the tool palette, and draw a repeating frame around the following fields to group them: ■ Item list: F_ITEM_NO, F_ITEM_DESC, F_QUANTITY, F_UNIT_PRICE, and F_ITEM_PRICE, including just the fields and not the empty space below the fields. Set the Repeating Frames Name property to R_ORDER_LIST, and the Source property to G_LIST. 5. Save and run your report. Adjust the position of objects if necessary to fit to the background of the invoice image. Your final report output should look something like this: Building an Invoice Report 33-11 Figure 33–5 Final invoice report output

33.7 Summary

Congratulations You have successfully created an invoice report. You now know how to: ■ create two queries with a data link between them. ■ add two summary columns and a formula column to the data model to include on the invoice. ■ prepare a report layout for adding information onto an image of an invoice. ■ create and position fields in the correct locations on an invoice form. 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 . 33-12 Oracle Reports Users Guide to Building Reports Building a Ranking Report 34-1 34 Building a Ranking Report In this chapter, you will learn about reports that rank data in different way. By following the steps in this chapter, you can generate the report output shown in Figure 34–1 . Figure 34–1 Tabular report output, ranked by number and percentage of customers Concepts You can create a report that ranks data by comparing it to a user-specified bind parameter. This enables you to rank data in different ways in the same report; for example, by count and by percentage. You can set the ranking criteria at runtime, or let them default to previously specified values. Data Relationships This report requires one query to fetch the data. To rank the data, youll create the following objects: ■ A bind parameter that gives you the option of setting the cutoff point at runtime. ■ A bind parameter that increments by one each time a record is fetched from the database. The value in this parameter will be compared to the cutoff Bind parameter. ■ A customized group filter to include only records within the cutoff value. Using a customized filter rather than a packaged filter enables you to parameterize your cutoff values. Layout This report uses a tabular layout style, with some modifications.