Previous
Previous
 
Next
Next

Customizing Interactive Reports

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:

About the Search Bar

Description of ir_search_bar.gif follows
Description of the illustration ir_search_bar.gif

A search bar displays at the top of every interactive report and may include the following features:

Using the Select Columns Icon

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:

  1. Click the Select Columns icon and select a column.

    Description of ir_select_col_rpt.gif follows
    Description of the illustration ir_select_col_rpt.gif

  2. Enter keywords in the Text area and click Go.

    Description of ir_select_col.gif follows
    Description of the illustration ir_select_col.gif

    Notice in this example the filter Row text contains 'Edward' displays above the report.

  3. To disable the filter, select the Enable/Disable Filter check box.

  4. To delete the filter, click the Remove Filter icon.

Using the Actions Menu

The Actions menu appears to the right of the Go button on the Search bar. Use this menu to customize an interactive report.

Description of ir_action_menu.gif follows
Description of the illustration ir_action_menu.gif

The Actions menu contains the following options:

Selecting Columns to Display

To customize a report to include specific columns, select Select Columns on the Actions menu.

To use the Select Columns option:

  1. Click the Actions menu and select Select Columns.

    The Select Columns region appears.

    Description of ir_select_column.gif follows
    Description of the illustration ir_select_column.gif

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

  3. To change the order of the columns, click the Top, Up, Down, and Bottom arrows on the right.

  4. Click Apply.

    A revised report appears.

Adding a Filter

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:

Adding a Column Filter

To add a column filter:

  1. Click the Actions menu and select Filter.

    The Filter region appears.

  2. For Filter Type, select Column.

  3. In the Filter region, specify a column, an operator, and expression.

    Description of ir_filter_sel_col.gif follows
    Description of the illustration ir_filter_sel_col.gif

    This filter narrows the display to only customers in the city of St. Louis.

  4. Click Apply.

    Description of ir_filter.gif follows
    Description of the illustration ir_filter.gif

    Notice the filter City = 'St Louis' has been added to the Report Settings area above the report.

  5. To revise the filter:

    1. Click the filter name (in this example, City = 'St Louis').

    2. Edit your selections and click Apply.

  6. To disable the filter, select the Enable/Disable Filter check box.

  7. To delete the filter, click Remove Filter.

Adding a Row Filter

To add a row filter:

  1. Click the Actions menu and select Filter.

    The Filter region appears.

  2. For Filter Type, select Row.

  3. In the Filter region:

    1. Enter a Name.

    2. Enter expression. Select a column and function or operator at the bottom of the region.

    Description of ir_filter_sel_row.gif follows
    Description of the illustration ir_filter_sel_row.gif

  4. Click Apply.

    Description of ir_filter_sel_row_rpt.gif follows
    Description of the illustration ir_filter_sel_row_rpt.gif

    The filter K<= 1000 narrows the display to customer having credit limit that is less than or equal to 1000.

  5. To revise the filter:

    1. Click Row Filter.

    2. Edit your selections and click Apply.

  6. To disable the filter, select the Enable/Disable Filter check box.

  7. To delete the filter, click Remove Filter.

Specifying Rows Per Page

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:

  1. Click the Actions menu and select Rows Per Page.

  2. From the submenu, select a number.

    Description of ir_row_per_page.gif follows
    Description of the illustration ir_row_per_page.gif

Selecting Columns and Sort Order

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:

  1. Click the Actions menu and select Format and then Sort.

    The Sort region appears.

    Description of ir_sort.gif follows
    Description of the illustration ir_sort.gif

  2. Select a column, the sort direction (Ascending or Descending), and Null Sorting behavior (Default, Nulls Always Last, or Nulls Always First).

  3. Click Apply.

Creating a Control Break

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:

  1. Click the Actions menu and select Format and then Control Break.

    The Control Break region appears.

    Description of ir_ctrl_break.gif follows
    Description of the illustration ir_ctrl_break.gif

  2. Select a column and then a status (Enable or Disable)

  3. Click Apply.

    One or more break groups display in Report Settings area above the report.

  4. To expand the break group, click the plus (+) sign.

  5. To enable the Control Break filter, select the Enable/Disable Filter check box.

  6. To delete the filter, click Remove Filter.

Adding Highlighting

You can customize the display to highlight specific rows in a report by selecting Highlight on the Actions, Format submenu.

To add highlighting:

  1. Click the Actions menu and select Format and then Highlight.

    The Highlight region appears.

    Description of ir_highlight.gif follows
    Description of the illustration ir_highlight.gif

  2. Enter the following information:

    1. Name - Enter a name that describes this filter.

    2. Sequence - Enter numeric value to identify the sequence in which the rules are evaluated.

    3. Enabled - Select Yes.

    4. Highlight Type - Select Cell or Row. If Cell is selected, the column referenced in the Highlight Condition is highlighted.

    5. Background Color - Select a new color for the background of the highlighted area.

    6. Text Color - Select a new color for the text in the highlighted area.

    7. Highlight Condition - Select a column, an operator, and expression.

  3. Click Apply.

    Description of ir_highlight_rpt.gif follows
    Description of the illustration ir_highlight_rpt.gif

    Note a new highlight appears in the Report Settings area above the report.

  4. To revise the highlight:

    1. Click the highlight name (in this example, Top Customer).

    2. Edit your selections and click Apply.

  5. To disable the highlight, select the Enable/Disable Filter check box.

  6. To delete the highlight, click Remove Highlight.

Computing Columns

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:

  1. Click the Actions menu and select Compute.

    The Compute region appears.

  2. In the Compute region:

    1. Computation - Select New Computation.

    2. Column Heading - Enter the name of the new column to be created.

    3. Format Mask - Select an Oracle format mask to be applied to the new column. (for example, S9999).

      Next, create the computation.

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

      Description of ir_compute.gif follows
      Description of the illustration ir_compute.gif

  3. Click Apply.

    The revised report appears containing a new Commission column.

    Description of ir_compute_eg.gif follows
    Description of the illustration ir_compute_eg.gif

Deleting a Computation

To delete a computation:

  1. Click the Actions menu and select Format and then Compute.

    The Compute region appears.

  2. From Computation, select computation name.

  3. Click Delete.

Aggregating a 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:

  1. Click the Actions menu and select Format and then Aggregate.

    The Aggregate region appears.

  2. In the Aggregate region:

    1. Aggregation - Select New Aggregation.

    2. Function - Select one of the following: Sum; Average, Count, Count Distinct, Minimum, Maximum, or Median.

    3. Column - Select a column.

      Description of ir_aggreg.gif follows
      Description of the illustration ir_aggreg.gif

      This example creates a sum or Order Total column.

  3. Click Apply.

    The computation appears at the bottom of the report.

    Description of ir_aggreg_rpt.gif follows
    Description of the illustration ir_aggreg_rpt.gif

    In this example, the aggregate shows the sum of all amounts in the Order Total column.

Removing an Aggregate

To remove aggregate columns:

  1. Click the Actions menu and select Format and then Aggregate.

    The Aggregate region appears.

  2. From Aggregation, select a previously defined aggregation.

  3. Click Delete.

Creating a Chart from the Actions Menu

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:

  1. Click the Actions menu and select Format and then Chart.

    The Chart region appears.

    Description of ir_chart.gif follows
    Description of the illustration ir_chart.gif

  2. In the Chart region, specify the following:

    1. Chart Type - Select the type of chart you wish to create (horizontal bar, vertical bar, pie, or line.).

    2. Label - Select the column to be used as the label.

    3. 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).

    4. Value - Select the column to be used as the Value. If your function is a COUNT, a Value does not need to be selected.

    5. Axis Title for Value - Enter the title to display on the axis associated with the column selected for Value (not available for pie chart).

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

Deleting a Chart

To delete a chart:

  1. Click the Actions menu and select Format and then Chart.

    The Chart region appears.

  2. Click Delete.

Grouping Columns

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:

  1. Click the Actions menu and select Format and then Group By.

    The Group By region appears.

    Description of ir_group_by.gif follows
    Description of the illustration ir_group_by.gif

  2. From Group by Column, select the columns to display.

  3. To include a computation, select the function, column, label, and format mask.

  4. To specify sorting, select a column, sort direction, and preferences for NULL values.

    A Group By icon appears in the Search bar.

Deleting a Group By

To delete a group by:

  1. Click the Actions menu and select Format and then Group By.

    The Group By region appears.

  2. Click Delete.

Executing a Flashback Query

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:

  1. Click the Actions menu and select Flashback.

  2. In the Flashback region, enter the number of minutes.

  3. Click Apply.

Saving a Report

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:

The following shows the Reports list on the Search bar of an interactive report.

Description of ir_reports_list.gif follows
Description of the illustration ir_reports_list.gif

Topics

Configuration Dependencies

The Save Report option on the Actions only displays if you:

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.

Saving a Primary or Alternative Interactive Report

Only developers can save a Primary Default interactive report. Primary Default reports cannot be renamed or deleted.

To save a default interactive report:

  1. Run the report as a developer.

  2. Customize the report (for example, hide columns, add filters, and so on). See "Using the Actions Menu".

  3. Click the Actions menu and select Save Report.

    The Save Report region appears.

    Description of ir_save_rpt.gif follows
    Description of the illustration ir_save_rpt.gif

  4. For Save, select As Default Report Settings.

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

  6. Click Apply.

Saving a Public or Private Interactive Report

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:

  1. Go to the page containing the interactive report you wish to save.

  2. Customize the report (for example, hide columns, add filters, and so on). See "Using the Actions Menu".

  3. Click the Actions menu and select Save Report.

    The Save Report region appears.

  4. In Save Report:

    1. Save - Select As Named Report.

    2. Public- Select this check box to make the report viewable to all users. Deselect this check box to make the report private.

    3. Name - Enter a name for the report.

    4. Description - Enter an optional description.

    5. Click Apply.

Editing or Deleting Primary or Alternative Reports

To edit or delete a primary, alternative, public or private interactive report:

  1. Run the report as a developer.

  2. Customize the report (for example, hide columns, add filters, and so on). See "Using the Actions Menu".

  3. To edit the report:

    1. Click the alternative report name link.

    2. Edit the attributes (for example, enter a new name).

    3. Click Apply.

  4. To delete the report, click the Delete Report icon next to the alternative report name link.

About Exporting Interactive Reports

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

Resetting a Report

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:

  1. Click the Actions menu and select Reset.

  2. Click Apply.

Downloading a Report

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:

  1. Click the Actions menu and select Download.

  2. Select a report download format and follow the provided instructions.

Subscribing to Emailed Reports

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:

To receive updated report results by email:

  1. Click the Actions menu and select Subscription.

    The Add Subscription region appears.

  2. Under Add Subscription:

    1. Email Address - Enter the email address to receive the report.

    2. Subject - Enter text to display in the email subject line.

    3. Frequency - Select the interval at which the report is sent.

    4. Starting From - Select a start date and time.

    5. Ending - Select a end date and time. Select a day, week, month, or year.

    6. Click Apply.


Tip:

"Managing Interactive Report Subscriptions" in Oracle Application Express Administration Guide

Using the Column Heading Menu

Clicking a column heading exposes the Column Heading menu.

Description of ir_col_head_menu.gif follows
Description of the illustration ir_col_head_menu.gif

Column Heading menu options include: