Skip Headers
Oracle® Fusion Middleware Oracle Reports User's Guide to Building Reports
11g Release 1 (11.1.1)

Part Number B32122-03
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

31.2 Create a Report Using the Report Wizard

The steps in this section will show you how to use the Report Wizard to create a simple report definition.

To create a report definition:

  1. Launch Reports Builder (or, if already open, choose File > New > Report).

  2. In the Welcome or New Report dialog box, select Use the Report Wizard, then click OK.

  3. If the Welcome page displays, click Next.

  4. On the Report Type page, select Create Paper Layout Only, then click Next.

  5. On the Style page, type a Title for your report, select Form, then click Next.

  6. On the Data Source page, click SQL Query, then click Next.

  7. On the Data page, enter the following SELECT statement in the Data Source definition field:

    SELECT ALL ORDERS.ORDER_ID, TO_CHAR(ORDERS.ORDER_DATE, 'DD-MON-YYYY')
    ORDER_DATE, ORDERS.CUSTOMER_ID, ORDERS.ORDER_TOTAL, 
    CUSTOMERS.CUST_FIRST_NAME || ' ' || CUSTOMERS.CUST_LAST_NAME CUSTOMER_NAME,
    CUSTOMERS.CUST_ADDRESS, (ROWNUM + 1000) AS CHECK_NO
    FROM ORDERS, CUSTOMERS
    WHERE CUSTOMERS.CUSTOMER_ID = ORDERS.CUSTOMER_ID
    ORDER BY ORDERS.ORDER_ID ASC
    

    Note:

    You can enter this query in any of the following ways:

    • Copy and paste the code from the provided text file called spellcash_code.txt into the Data Source definition field.

    • Click Query Builder to build the query without entering any code manually.

    • Type the code in the Data Source definition field.

  8. Click Next.

    Note:

    If you are not already connected to a database, you will be prompted to connect to the database when you click Query Builder or Next. Ensure that you connect to a database that has the appropriate schema for this example. Section 31.1, "Prerequisites for This Example" describes the sample schema requirements for this example.

  9. On the Fields page, click the double right arrows (>>) to move all of the fields to the Displayed Fields list, then click Next.

  10. On the Totals page, click Next.

  11. On the Labels page, change the labels and field widths as follows, then click Next:

    Table 31-1 Field description of Labels page

    Fields Labels Width

    ORDER_ID

    Order No.

    5

    ORDER_DATE

    Order Date

    12

    CUSTOMER_ID

    Customer No.

    3

    ORDER_TOTAL

    Order Total

    15

    CUSTOMER_NAME

    Customer

    40

    C_STREET_ADDRESS

    [blank]

    40

    C_POSTAL_CODE

    [blank]

    5

    C_CITY

    [blank]

    20

    C_STATE_PROVINCE

    [blank]

    3

    C_COUNTRY_ID

    [blank]

    3

    CHECK_NO

    Check No.

    5


  12. On the Template page, select No Template, then click Finish to preview your report output in the Paper Design view.

    Since you have only created the initial report definition, the formatting will not display like a check. It should look something like this:

    Figure 31-2 Paper Design view of the simple report

    Description of Figure 31-2 follows
    Description of "Figure 31-2 Paper Design view of the simple report"

  13. Save your report as spellcash_your_initials.rdf.