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, your 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 Application Properties" in Oracle Application Express Application Builder User's Guide.

Topics:

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 a 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.

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 name of the table or view on which to base the report.

      • 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.

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.

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. Select the report.

    The report appears.

  4. From the Manage menu, click Edit Attributes.

    The Report Attributes page appears.

  5. Click Delete.