16.15 Printing a Report Region by Defining a Report Query
Print a report region by defining a report query.
- About Report Queries
Learn about report queries. - Creating a Report Query
Create a report query in Shared Components. - Editing a Report Query
Edit a report query in Shared Components. - Copying a Report Query
Copy a report query in Shared Components. - Viewing Report Query Utilization
View the Report Query Utilization report. - Viewing Report Query History
View the Report Query History report.
Parent topic: Managing Shared Components
16.15.1 About Report Queries
Learn about report queries.
In Oracle APEX, a report query is a SQL query that is used to fetch data to be displayed in a report. The data source can be a table, a SQL query, or a REST Data Source. The report query defines the columns to be included in the report, the data source, and any conditions or sorting to be applied to the data. Note that report queries must be SQL statements. Functions returning SQL statements are not supported.
You can print a report region by defining a report query as a Shared Component.
To download a report query as a formatted document, you associate it with a report layout. If no report layout is selected, APEX uses a generic layout. You can use the generic layout to test and verify a report query. When using the generic layout option, and when multiple source queries are defined, only the first result set is included in the print document. The reports can include session state of the current application.
The following Print Server Types do not support generic report layouts:
- Oracle Document Generator Pre-built Function
- APEX Office Print
To make these reports available to users, you then integrate them with an application. For example, you can associate a report query with a button, list item, branch, or other navigational component that enables you to use URLs as targets. Selecting that item then initiates the printing process.
Parent topic: Printing a Report Region by Defining a Report Query
16.15.2 Creating a Report Query
Create a report query in Shared Components.
To create a report query:
Caution:
If you are using Document Generator or APEX Office Print, it is important to edit the report query to specify the Data Loop Name. The data loop name and the report query source must match.See Also:
About Report PrintingParent topic: Printing a Report Region by Defining a Report Query
16.15.3 Editing a Report Query
Edit a report query in Shared Components.
To edit a report query:
Parent topic: Printing a Report Region by Defining a Report Query
16.15.4 Copying a Report Query
Copy a report query in Shared Components.
To copy a report query:
Parent topic: Printing a Report Region by Defining a Report Query
16.15.5 Viewing Report Query Utilization
View the Report Query Utilization report.
To view the Report Query Utilization report:
Parent topic: Printing a Report Region by Defining a Report Query
16.15.6 Viewing Report Query History
View the Report Query History report.
To view the Report Query History report:
Parent topic: Printing a Report Region by Defining a Report Query