Skip Headers
Oracle® Application Express Application Builder User's Guide
Release 4.2

E35125-05
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 current chapter
Up
Go to next page
Next
PDF · Mobi · ePub

5.8 About Adding Data Reports

Data reports are contributor-defined queries on tables or views within the underlying Oracle database.

Tip:

Before you can add a data report, the Websheet application developer must enable the Allow SQL and PL/SQL attribute on the Websheet properties page. By default, this attribute is disabled. To learn more, see "Editing Websheet Properties".

Topics:

5.8.1 About Data Reports

Data reports, unlike data grids, are query-only and based on existing data from the Oracle database. You can specify the table or view name and retrieve all columns or write an SQL statement to retrieve the required data.

Users can alter the layout of report data by selecting columns or by applying filters, highlighting, and sorting. Users can also define breaks, aggregations, group by, computations, and different charts. Additionally, users can create multiple variations of a data grid and save them as named reports, for either public or private viewing. You can also use the data from a data report and include it as a chart or report within any page.

5.8.2 Creating a Data Report

You can create a data report by either simply entering the table or view name, or by providing a SQL query.

To create a data report:

  1. Run the Websheet as described in "Running a Websheet".

  2. From the Report menu, select New Report.

    Tip:

    You can also select New Report on the Control Panel.

    The Create Report page appears.

  3. For Report Source, identify how to develop your source. Options include:

    1. Table - Select Table and enter the following:

      • Table or View Name - Select the table name the report is to be based on.

      • Report Name - Enter the name of the report.

      • Report Alias - Enter a report alias. A Report alias is used for linking to the Report within page sections. A Report alias must be unique within an application.

    2. SQL Query - Select SQL Query and enter the following:

      • Report Name - Enter the name of the report.

      • Report Alias - Enter a report alias. A Report alias is used for linking to the Report within page sections. A Report alias must be unique within a Websheet.

      • Query - Enter the SQL query that defines your report.

    3. Click Next.

  4. Confirm your selections and click Create Report.

5.8.3 Viewing and Modifying a Data Report

To view or modify a data report:

  1. Run the Websheet as described in "Running a Websheet".

  2. From the Report menu, select View All.

    The Report page appears.

  3. Select the report.

    The report appears.

  4. To edit report attributes:

    • From the Manage menu, click Edit Attributes.

      The Report Attributes page appears.

    • Edit the attributes and click Apply Changes.

  5. To edit the report query:

    • From the Manage menu, click Edit Query.

      The Report Query page appears.

    • To save your changes, click Apply Changes.

5.8.4 Deleting a Data Report

To delete a data report:

  1. Run the Websheet as described in "Running a Websheet".

  2. From the Report menu, select the report.

    The report appears.

  3. From the Manage menu, click Edit Attributes.

    The Report Attributes page appears.

  4. Click Delete.