Home > Adding Application Components > Creating Reports > Customizing Interactive Rep...
Previous |
Next |
Interactive reports enable end users to customize reports. Users can alter the layout of report data by choosing the columns they are interested in, applying filters, highlighting, and sorting. They can also define breaks, aggregations, different charts, group bys, and add their own computations.
Users can also set up a subscription so that an HTML version of the report will be emailed to them a designated interval. Users can create multiple variations of a report and save them as named reports, for either public or private viewing.
An interactive report can be customized in three ways: the Search bar, Actions menu and Column Heading menu.
Tip: To learn more about controlling what options display in an interactive report, see "Editing Interactive Reports as a Developer" |
Topics:
A search bar displays at the top of every interactive report and may include the following features:
Select Columns icon - Resembles a magnifying glass. Click this icon to narrow your search to specific columns. To search all columns, select All Columns.
Text area - Enter case insensitive search criteria (wild card characters are implied) and then click Go.
Go button - Executes a search.
Reports - Displays alternate default and saved private or public reports.
View icons - Switches between icon, report and detail view of the default report (if enabled). May also include Chart and Group By View (if defined).
Actions menu - Clicking the icon displays the Actions menu. Use this menu to customize an interactive report. See "Using the Actions Menu".
A Select Columns icon displays to the left of the search bar. Clicking this icon displays a listing of all columns in the current report.
To search specific columns:
Click the Select Columns icon and select a column.
Enter keywords in the Text area and click Go.
Notice in this example the filter Row text contains 'Edward
' displays above the report.
To disable the filter, select the Enable/Disable Filter check box.
To delete the filter, click the Remove Filter icon.
The Actions menu appears to the right of the Go button on the Search bar. Use this menu to customize an interactive report.
The Actions menu contains the following options:
Select Columns specifies which columns to display and in what order. See "Selecting Columns to Display".
Filter focuses the report by adding or modifying the WHERE
clause on the query. See "Adding a Filter".
Rows Per Page determines how many rows display in the current report. See "Specifying Rows Per Page".
Format contains the following submenu:
Sort - Changes the columns to sort on and determines whether to sort in ascending or descending order. See "Selecting Columns and Sort Order".
Control Break - Creates a break group on one or several columns. This pulls the columns out of the interactive report and displays them as a master record. See "Creating a Control Break".
Highlight - Defines a filter that highlights the rows that meet the filter criteria. See "Adding Highlighting".
Compute - Enables users to add computed columns to a report. See "Computing Columns".
Aggregate - Enables users to perform mathematical computations against a column. See "Aggregating a Column".
Chart - Displays the report data as a chart. See "Creating a Chart from the Actions Menu".
Group By - Enables users to group the result set by one or more columns and perform mathematical computations against columns. See "Grouping Columns".
Flashback - Enables you to view the data as it existed at a previous point in time. See "Executing a Flashback Query".
Save Report - Saves the interactive report. Depending upon their user credentials, users can save four different types of reports. See "Saving a Report".
Reset - Enables users to reset the report back to the default report settings. See "Resetting a Report".
Help - Provides descriptions of how to customize interactive reports.
Download - Enables users to download a report. Available download formats depend upon your installation and report definition. See "Downloading a Report".
Subscription - Enables users to send themselves an interactive report by email. See "Subscribing to Emailed Reports"
To customize a report to include specific columns, select Select Columns on the Actions menu.
To use the Select Columns option:
Click the Actions menu and select Select Columns.
The Select Columns region appears.
Select the columns you wish to move. Click the center arrows to move a column from the Display in Report box to the Do Not Display box. To select multiple columns at once, press and hold the CTRL key.
To change the order of the columns, click the Top, Up, Down, and Bottom arrows on the right.
Click Apply.
A revised report appears.
You can create a filter on an interactive report by adding or modifying the WHERE
clause on the query. You can create two types of filters:
Column - Creates a custom column filter. Select a column (it does not need to be one that displays), select a standard Oracle operator (=
, !=, not in, between
), and enter an expression to compare against. Expressions are case sensitive. Use % as a wild card. For example:
STATE_NAME like A%
Row - Creates a custom row filter. This filter creates a complex WHERE
clauses using column aliases and any Oracle functions or operators. For example:
G = 'VA' or G = 'CT'
Where G
is the alias for CUSTOMER_STATE
.
To add a column filter:
Click the Actions menu and select Filter.
The Filter region appears.
For Filter Type, select Column.
In the Filter region, specify a column, an operator, and expression.
This filter narrows the display to only customers in the city of St. Louis.
Click Apply.
Notice the filter City = 'St Louis'
has been added to the Report Settings area above the report.
To revise the filter:
Click the filter name (in this example, City = 'St Louis'
).
Edit your selections and click Apply.
To disable the filter, select the Enable/Disable Filter check box.
To delete the filter, click Remove Filter.
To add a row filter:
Click the Actions menu and select Filter.
The Filter region appears.
For Filter Type, select Row.
In the Filter region:
Enter a Name.
Enter expression. Select a column and function or operator at the bottom of the region.
Click Apply.
The filter K<= 1000
narrows the display to customer having credit limit that is less than or equal to 1000.
To revise the filter:
Click Row Filter.
Edit your selections and click Apply.
To disable the filter, select the Enable/Disable Filter check box.
To delete the filter, click Remove Filter.
You can specify the number of rows that display on a page by selecting Rows Per Page on the Actions menu.
To specify the number of rows that display:
Click the Actions menu and select Rows Per Page.
From the submenu, select a number.
You can specify which columns to display and the sort order (ascending or descending) by selecting Sort on the Format submenu. You can also specify how to handle NULL
values. Using the default setting always displays NULL
values last or always display them first.
To sort by column:
Click the Actions menu and select Format and then Sort.
The Sort region appears.
Select a column, the sort direction (Ascending or Descending), and Null Sorting behavior (Default, Nulls Always Last, or Nulls Always First).
Click Apply.
You can create a break group of one or several columns by selecting Control Break from the Actions, Format submenu. Creating a break group pulls the columns out of the interactive report and displays them as a master record.
To create a break group:
Click the Actions menu and select Format and then Control Break.
The Control Break region appears.
Select a column and then a status (Enable or Disable)
Click Apply.
One or more break groups display in Report Settings area above the report.
To expand the break group, click the plus (+) sign.
To enable the Control Break filter, select the Enable/Disable Filter check box.
To delete the filter, click Remove Filter.
You can customize the display to highlight specific rows in a report by selecting Highlight on the Actions, Format submenu.
To add highlighting:
Click the Actions menu and select Format and then Highlight.
The Highlight region appears.
Enter the following information:
Name - Enter a name that describes this filter.
Sequence - Enter numeric value to identify the sequence in which the rules are evaluated.
Enabled - Select Yes.
Highlight Type - Select Cell or Row. If Cell is selected, the column referenced in the Highlight Condition is highlighted.
Background Color - Select a new color for the background of the highlighted area.
Text Color - Select a new color for the text in the highlighted area.
Highlight Condition - Select a column, an operator, and expression.
Click Apply.
Note a new highlight appears in the Report Settings area above the report.
To revise the highlight:
Click the highlight name (in this example, Top Customer
).
Edit your selections and click Apply.
To disable the highlight, select the Enable/Disable Filter check box.
To delete the highlight, click Remove Highlight.
You can add computations to columns by selecting Compute from the Actions, Format submenu. These computations can be mathematical computations (for example, NBR_HOURS/24
) or standard Oracle functions applied to existing columns. Note that some display as examples and others (such as TO_DATE
) can also be used).
To create a computation:
Click the Actions menu and select Compute.
The Compute region appears.
In the Compute region:
Computation - Select New Computation.
Column Heading - Enter the name of the new column to be created.
Format Mask - Select an Oracle format mask to be applied to the new column. (for example, S9999
).
Next, create the computation.
Create the computation:
Columns - Select a column or alias.
Keypad - Select a shortcut for commonly used keys.
Functions - Select the appropriate function.
The following example, creates a new Commission column. This column calculates at 10% sales commission using the formula C*.10
where C
is the order total.
Click Apply.
The revised report appears containing a new Commission column.
You can define a mathematical computation against a column (or aggregate) by selecting Aggregate from the Actions, Format menu. Aggregates are displayed after each control break and at the end of the report within the column in which they are defined.
To aggregate columns:
Click the Actions menu and select Format and then Aggregate.
The Aggregate region appears.
In the Aggregate region:
Aggregation - Select New Aggregation.
Function - Select one of the following: Sum; Average, Count, Count Distinct, Minimum, Maximum, or Median.
Column - Select a column.
This example creates a sum or Order Total column.
Click Apply.
The computation appears at the bottom of the report.
In this example, the aggregate shows the sum of all amounts in the Order Total column.
To create a chart, select Chart on the Actions, Format menu. You can create one chart for each interactive report. Once defined, you can switch between the chart and report views using links on the Search bar.
To create a chart:
Click the Actions menu and select Format and then Chart.
The Chart region appears.
In the Chart region, specify the following:
Chart Type - Select the type of chart you wish to create (horizontal bar, vertical bar, pie, or line.).
Label - Select the column to be used as the label.
Axis for Title for Label - Enter title to be displayed on the axis associated with the column selected for Label (not available for pie chart).
Value - Select the column to be used as the Value. If your function is a COUNT
, a Value does not need to be selected.
Axis Title for Value - Enter the title to display on the axis associated with the column selected for Value (not available for pie chart).
Function - (Optional) Select a function to be performed on the column selected for Value.
Click Apply and a View Chart icon appears in Search bar.
Group By enables users to group the result set by one or more columns and perform mathematical computations against the columns. Once users define the group by, they can switch between the group by and report views using the View Icon on the Search bar.
To use Group By:
Click the Actions menu and select Format and then Group By.
The Group By region appears.
From Group by Column, select the columns to display.
To include a computation, select the function, column, label, and format mask.
To specify sorting, select a column, sort direction, and preferences for NULL values.
A Group By icon appears in the Search bar.
You can execute a flashback query by selecting Flashback from the Actions menu. A flashback query enables you to view the data as it existed at a previous point in time. The default amount of time that you can flashback is 3 hours (or 180 minutes) but the actual amount will differ for each database.
To execute a flashback query:
Click the Actions menu and select Flashback.
In the Flashback region, enter the number of minutes.
Click Apply.
Both developers and end users can save an interactive reports. However, only a developer can save the report that initially displays, the Primary Default, or create an Alternative Default report.
You can save four types of interactive reports:
Primary Default (Developer Only). The Primary Default is the report that initially displays. Primary Default reports cannot be renamed or deleted.
Alternative Report (Developer Only). Enables developers to create multiple report layouts. Only developers can save, rename, or delete an Alternative Report.
Public Report (End user). Can be saved, renamed, or deleted by the end user who created it. Other users can view and save the layout as another report.
Private Report (End user). Only the end user that created the report can view, save, rename or delete the report.
The following shows the Reports list on the Search bar of an interactive report.
Topics
The Save Report option on the Actions only displays if you:
Define an authentication scheme for the current application. See "Establishing User Identity Through Authentication".
On the Report Attributes page, scroll down to Search Bar and select Save Report or Save Public Report. See "Customizing the Interactive Report Search Bar".
The Reports select list on the Search Bar only displays if you select Reports Select List under Search Bar on the Report Attributes page. See "Customizing the Interactive Report Search Bar".
Note that many of these options are selected by default.
Only developers can save a Primary Default interactive report. Primary Default reports cannot be renamed or deleted.
To save a default interactive report:
Run the report as a developer.
Customize the report (for example, hide columns, add filters, and so on). See "Using the Actions Menu".
Click the Actions menu and select Save Report.
The Save Report region appears.
For Save, select As Default Report Settings.
For Default Report Type, select either:
Primary - This report displays as the primary report when the page runs.
Alternative - This report displays as an alternative option on the Reports list on the Search bar. If you select Alternative, enter a name.
Click Apply.
End users can save an interactive report and classify it as being either public or private. Public reports can be viewed by all users. Private reports can only be viewed by the user who saves the report.
Tip: To save a public report, you must select Save Public Report must be selected under Include in Actions Menu on the Report Attributes page. in Include Actions menu list. Developers can also apply authorization scheme to enable or disable Save Public Report. See "Customizing the Interactive Report Search Bar". |
To save a public or private interactive report:
Go to the page containing the interactive report you wish to save.
Customize the report (for example, hide columns, add filters, and so on). See "Using the Actions Menu".
Click the Actions menu and select Save Report.
The Save Report region appears.
In Save Report:
Save - Select As Named Report.
Public- Select this check box to make the report viewable to all users. Deselect this check box to make the report private.
Name - Enter a name for the report.
Description - Enter an optional description.
Click Apply.
To edit or delete a primary, alternative, public or private interactive report:
Run the report as a developer.
Customize the report (for example, hide columns, add filters, and so on). See "Using the Actions Menu".
To edit the report:
Click the alternative report name link.
Edit the attributes (for example, enter a new name).
Click Apply.
To delete the report, click the Delete Report icon next to the alternative report name link.
When you export an application, the Primary Default, Alternative Default, public reports are included by default. You can also choose to include personal reports during the export process by selecting Yes for Private Interactive Reports. See "Exporting an Application".
You can reset a report back to the default settings by selecting Reset from the Actions menu. Resetting a report removes any customizations you have made.
To reset a report:
Click the Actions menu and select Reset.
Click Apply.
You can download an interactive report back by selecting Download from the Actions menu. Available download formats depend upon your installation and report definition. Supported formats include comma-delimited file (CSV) format, HTML, Email, Microsoft Excel (XLS) format, Adobe Portable Document Format (PDF), and Microsoft Word Rich Text Format (RTF). See "Configuring Download Options on the Actions Menu"
To download a report:
Click the Actions menu and select Download.
Select a report download format and follow the provided instructions.
End users can receive updated versions of a report by subscribing to it. To subscribe to a report, click Subscription on the Actions menu.
To utilize Subscription:
An Oracle Application Express administrator must configure email at the Instance level. See "Configuring Mail" in Oracle Application Express Administration Guide
The application developer must check the Subscription check box on the Interactive Report Attributes page. See "Customizing the Interactive Report Search Bar"
To receive updated report results by email:
Click the Actions menu and select Subscription.
The Add Subscription region appears.
Under Add Subscription:
Email Address - Enter the email address to receive the report.
Subject - Enter text to display in the email subject line.
Frequency - Select the interval at which the report is sent.
Starting From - Select a start date and time.
Ending - Select a end date and time. Select a day, week, month, or year.
Click Apply.
Clicking a column heading exposes the Column Heading menu.
Column Heading menu options include:
Sort Ascending icon - Sorts the report by the column in ascending order.
Sort Descending icon - Sorts the report by the column in descending order.
Hide Column - Hides the column. Not all columns can be hidden. If a column cannot be hidden, there will be no Hide Column icon.
Break Column - Creates a break group on the column. This pulls the column out of the report as a master record.
Column Information - Displays help text about the column, if available.
Text Area - Used to enter a case insensitive search criteria (no need for wild cards). Entering a value reduces the list of values at the bottom of the menu. You can then select a value from the bottom. The selected value will be created as a filter using either the equal
sign (=) or contains
depending on the List of Values Column Filter Type. Alternatively, you can click the Flashlight icon and enter a value to be created as a filter with the LIKE
modifier (for example, column LIKE '%ABC%'
).
List of Unique Values - Contains the first 500 unique values that meets your filter criteria. If the column is a date, a list of date ranges is displayed instead.