10.4 Editing Interactive Reports in Page Designer

By default, an interactive report includes a search bar, an Actions menu, a Column Heading menu, and Edit icons in the first column of each row. Users can use these controls to alter the layout of report data by selecting columns, applying filters, highlighting, and sorting. This section describes how developers can customize an interactive report in Page Designer and configure how these controls display.

10.4.1 Editing Region Attributes in Page Designer

To edit region attributes in Page Designer:

  1. View the page containing the region in Page Designer. See "Viewing a Page in Page Designer."

    Page Designer appears.

  2. In the Rendering tree, select the region.

    The Property Editor displays the region attributes in the right column.

    Description of pg_edit_region.png follows
    Description of the illustration ''pg_edit_region.png''

    Attributes are organized into functional groups. Required attributes display a red triangle in the upper left corner next above attribute label.

  3. Edit the appropriate attributes.

    To learn more, see field-level Help.

    Tip:

    To control the amount of information that displays, click the Show Common, Show All, Collapse All, and Expand All buttons.
  4. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.2 Editing Column Attributes in Page Designer

You can edit Column attributes to precisely control the report layout. For example, you can use these attributes to alter column heading, change column positioning, hide a column, or control how users can manipulate a column.

To access Column attributes:

  1. View the page in Page Designer. See "Viewing a Page in Page Designer."

    Page Designer appears.

  2. In the Rendering tree, locate the region and expand the Columns node.

    The columns appear in the Rendering tree.

  3. Select a column to edit

    The Property Editor displays the attributes for that column.

  4. Edit the appropriate attributes.

    To learn more, see field-level Help.

    Tip:

    To control the amount of information that displays, click the Show Common, Show All, Collapse All, and Expand All buttons.
  5. To edit the column heading:

    1. Locate and expand Heading.

    2. Edit the Heading and Alignment attributes.

  6. To control how users can manipulate a column:

    1. Locate and expand Enable Users To.

    2. For Enable Users To, select Yes or No to control how users can manipulate the report.

  7. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.3 Editing Interactive Report Attributes in Page Designer

You can edit report attributes to precisely control how a report works. For example, you can use these attributes to configure pagination, create error messages, configure the Search bar, Action menu, and download options, control if and how users save the report, and configure supported views.

To edit report attributes in Page Designer:

  1. View the page in Page Designer. See "Viewing a Page in Page Designer."

    Page Designer appears.

  2. In the Rendering tree, locate the region containing the report.

  3. Under Region, select the Attributes node.

    The Property Editor displays the report attributes in the Property Editor.

  4. Edit the appropriate attributes.

    To learn more, see field-level Help.

    Tip:

    To control the amount of information that displays, click the Show Common, Show All, Collapse All, and Expand All buttons.
  5. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.4 Controlling Interactive Report Pagination in Page Designer

Pagination provides the end user with information about the number of rows and the current position within the result set. You control how pagination displays by making selections from Pagination attributes on the Attributes page in the Property Editor.

To edit interactive report pagination:

  1. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    Attributes displays in the Property Editor.

  2. Configure the Pagination attributes:

    1. Locate and expand Pagination.

    2. Type - Select the pagination type for this report. Often only a certain number of rows of a report display on a page. In order to include additional rows, the application end user must to navigate to the next page of the report.

    3. Display Position - Select where the report pagination displays.

      Pagination can be shown above or below the report (or both) and can be positioned on the left or right.

  3. To save your changes click Save. To save and run the page, click Save and Run Page.

Tip:

The number of rows you query can impact performance. Querying fewer rows can improve performance and querying thousands of rows can degrade performance.You can control the maximum number of rows to query by editing the Maximum Row Count attribute under Advanced.

10.4.5 Customizing the Interactive Report Search Bar

This section describes how to customize the interactive report search bar.

10.4.5.1 Interactive Report Search Bar

All interactive reports include search bar at the top of the page which includes the following controls: a Select columns to search icon, Text area, Go button, and Actions menu.

Description of ir_search.png follows
Description of the illustration ''ir_search.png''

You can remove or customize the search bar by configuring report attributes in the Property Editor.

10.4.5.2 Customizing the Search Bar in Page Designer

To customize the search bar:

  1. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    The Attributes display in the Property Editor.

  2. Locate and expand Search Bar.

    Description of pd_ir_search_att.png follows
    Description of the illustration ''pd_ir_search_att.png''

  3. Configure the options under Search Bar. To learn more about an attribute, select the attribute and click the Help tab.

    Table 10-4 describes the Search Bar attributes.

    Table 10-4 Property Editor Search Bar Attributes

    Attribute Description

    Include Search Bar

    Select Yes or No. Selecting No removes the Search bar.

    Search Field

    Displays a text field in the search bar in which to enter search criteria. Select Yes or No.

    Finder Drop Down

    Enables users to search on a selected column or against all columns. Select Yes or No. Within the interactive report, this option is identified as Select columns to search.

    Reports Select List

    Displays report select list if the report has alternative default, shared report or personal report. Select Yes or No.

    See Also: "Saving Interactive Reports".

    Rows Per Page Selector

    Specify whether a separate drop down row selector is included within the search bar. Select Yes or No.

    See Also: "Saving Interactive Reports".

    Search Button Label

    Specify the text to use as search button label.

    Maximum Rows Per Page

    Enter the maximum number to display in the Rows Per Page Selector.


  4. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.5.3 Removing the Search Bar in Page Designer

To remove the search bar from in interactive report:

  1. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    The Attributes page displays in the Property Editor.

  2. Locate and expand Search Bar.

  3. For Include Search Bar, select No.

  4. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.6 Customizing the Actions Menu in Page Designer

This section describes how to customize the Action menu in an interactive a report.

10.4.6.1 Interactive Report Action Menu

The Actions menu appears to the right of the Go button on the Search bar. End users can use this menu to customize an interactive report.

Description of ir_action_menu.png follows
Description of the illustration ''ir_action_menu.png''

You can remove or customize the Actions menu by configuring report attributes in the Property Editor.

10.4.6.2 Customizing the Action Menu in Page Designer

To customize the Action menu:

  1. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    The Attributes page displays in the Property Editor.

  2. Locate and expand Actions Menu.

    Description of pd_ir_action_att.png follows
    Description of the illustration ''pd_ir_action_att.png''

  3. Configure the options under Action Menu by selecting Yes or No.

    Tip:

    To view Help, select the attribute and click the Help tab. Once you activate the Help pane, the content that displays changes every time you select another attribute.
  4. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.6.3 Configuring Actions Menu Download Options in Page Designer

You can configure a Download option to the Actions menu to enable users to download an interactive report as a comma-delimited file (CSV) format, HTML, Microsoft Excel (XLS) format, Adobe Portable Document Format (PDF), Microsoft Word Rich Text Format (RTF), or as HTML attached to an email.

10.4.6.3.1 Enabling Download Formats

To configure download formats:

  1. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    The Attributes page displays in the Property Editor.

  2. View all attributes in the Property Editor. Click the Show All button.

  3. Edit the following attributes:

    To learn more, see field-level Help.

    1. Search Bar, Include Search Bar - Select Yes.

    2. Actions Menu, Download - Select Yes.

      Tip:

      Selecting No for Download prevents the Download menu from displaying on the Actions menu. To fully prevent users from downloading data, deselect all Download Formats described in the next step.
    3. Download, Download Formats - Select download formats:

      Tip:

      The Download option only appears on the Actions menu if a file format is selected. If a report server has not been defined within Instance Administration then certain options do not display. To learn more, see "Configuring Report Printing" Oracle Application Express Administration Guide.
  4. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.6.3.2 Enabling CSV Download

To enable the Enable CSV download:

  1. Enable the CSV output option on the Edit Globalization Attributes page. See "Accessing the Globalization Attributes Page" and "Automatic CSV Encoding."

  2. View the page in Page Designer. See "Viewing a Page in Page Designer."

    Page Designer appears.

  3. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    The Attributes page displays in the Property Editor.

  4. View all attributes in the Property Editor. Click the Show All button.

  5. Edit the following attributes:

    To learn more, see field-level Help.

    1. Search Bar, Include Search Bar - Select Yes.

    2. Actions Menu, Download - Select Yes.

      Tip:

      Selecting No for Download prevents the Download menu from displaying on the Actions menu. To fully prevent users from downloading data, deselect all Download Formats described in the next step.
    3. Download, Download Formats:

      1. Download Formats - Select CSV.

        Tip:

        The Download option only appears on the Actions menu if a file format is selected.
      2. CSV Separator - Define the column separator. If no value is entered, a comma or semicolon is used depending on your current NLS settings.

      3. CSV Enclosed By - Enter a delimiter character. This character delineates the starting and ending boundary of a data value. Default delimiter is double quotation marks (" ").

      4. Filename - Enter a name for the downloaded document. Do not specify a file extension, the extension is added automatically. If you leave this blank, the region name is used as the file name.

  6. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.6.3.3 Enabling Email Download

You can configure the Download option to send static HTML report to specific email addresses.

Tip:

Email download is only supported on authenticated pages. If you enable Email download on a public page, the Email download option does not display in Download dialog.

To enable email download:

  1. An Oracle Application Express administrator must configure email at the Instance level. See "Configuring Mail" in Oracle Application Express Administration Guide.

  2. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    The Attributes page displays in the Property Editor.

  3. Edit the following attributes:

    To learn more, see field-level Help.

    1. Search Bar, Include Search Bar - Select Yes.

    2. Actions Menu, Download - Select Yes.

      Tip:

      Selecting No for Download prevents the Download menu from displaying on the Actions menu. To fully prevent users from downloading data, deselect all Download Formats described in the next step.
    3. Download, Download Formats - Select Email.

      Tip:

      The Download option only appears on the Actions menu if a file format is selected.
  4. To save your changes click Save. To save and run the page, click Save and Run Page.

Note:

Email sent from an Email Download contains a system generated email signature identifying who sent the email. This signature cannot be removed.

10.4.7 Managing Link Columns in Page Designer

A Link Column displays on the left side of an interactive report. This section describes how to configure a Link Column to link to a single row view, a custom target, or be excluded from the report.

Tip:

A Link Column cannot be sorted, hidden, or moved by an end user and does not interact with the standard column link defined on the Column Attributes page.

10.4.7.1 Linking to a Single Row View

To link to a single row view:

  1. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    The Attributes page displays in the Property Editor.

  2. Configure Link attributes:

    1. Locate and expand Link.

    2. Link Column - Select Link to Single Row View.

    3. Uniquely Identify Rows by - Select ROWID or Unique Column.

      If you select, Unique Column, specify the column in the Unique Column field.

    4. Link Icon - Accept the default or specify the path to another icon.

    5. Link Attributes - Optionally specify additional column link attributes to be included in the <a href= > tag (for example, a link target, classes, or styles).

    6. Authorization Scheme - Select an authorization scheme to associate with the Link Column. This authorization scheme must evaluate to TRUE in order for the Link Column to be rendered in the report.

    7. Condition Type - Select a condition type from the list that must be met in order for this link to be rendered.

  3. Configure Single Row View attributes:

    1. Locate and expand Single Row View.

    2. Exclude Null Values - Specify whether null columns are hidden on the Single Record View.

    3. Only Displayed Columns - Specify whether only those columns currently displayed are displayed in the Single Record View. If you specify No then hidden report columns may also be shown on the Single Record View.

  4. To save your changes click Save. To save and run the page, click Save and Run Page.

Tip:

If an interactive report links to single row view and the link icon is missing ALT text or has empty ALT text, the alt="Single Row View" gets included automatically to make the report accessible. To override this behavior, include meaningful ALT text.

10.4.7.2 Linking to a Specific Page

To link to a specific page:

  1. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    The Attributes page displays in the Property Editor.

  2. Under Link:

    1. Link Column - Select Link to Custom Target.

    2. Target -

      • Click the Target field.

        The Link Builder - Target dialog appears.

      • Target Type - Select Page in this Application.

      • Page - Select the target page number.

      • Set Items - Select a Name and Value to specify session state for an item.

      • Clear Cache - Specify the page numbers on which to clear cache. To specify multiple page, enter a comma-delimited list of page numbers. See "Linking to Interactive Reports."

      • Request - Specify the request to be used.

      • To reset the pagination for this page, select Yes for Reset Pagination.

      • Click OK.

    3. Link Icon - Accept the default or specify another image.

    4. Link Attributes (Optional) - Specify additional column link attributes to be included in the <a href= > tag (for example, a link target, classes, or styles).

  3. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.7.3 Linking to a URL

To link to a URL:

  1. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    The Attributes page displays in the Property Editor.

  2. Configure the Link attributes:

    1. Locate and expand Link.

    2. Link Column - Select Link to Custom Target.

    3. Configure the Target:

      • Click the Target field.

        The Link Builder - Target dialog appears.

      • Target Type - Select URL.

      • URL - Enter the appropriate address.

      • Click OK.

    4. Link Icon - Accept the default or specify another image.

    5. Link Attributes (Optional) - Specify additional column link attributes to be included in the <a href= > tag (for example, a link target, classes, or styles).

  3. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.7.4 Excluding a Link Column

To exclude a column link:

  1. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    The Attributes page displays in the Property Editor.

  2. Locate and expand Link.

  3. Configure the Link attributes:

    1. Locate and expand Link.

    2. For Link Column, select Exclude Link Column.

  4. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.8 Creating a Column Link in an Interactive Report

Use Column Attributes to create a link from a report to another page in your application or to a URL.

To create a column link to another page:

  1. View the page in Page Designer. See "Viewing a Page in Page Designer."

    Page Designer appears.

  2. In the Rendering tree, locate the region and expand the Columns node.

    The columns appear in the Rendering tree.

  3. Select a column to edit

    The Property Editor displays the attributes for that column.

    Tip:

    To control the amount of information that displays, click the Show Common, Show All, Collapse All, and Expand All buttons.
  4. Expand Identification. From Type, select Link.

  5. Expand Link and click No Link Defined.

    The Link Builder - Target dialog appears.

  6. To create a link to another page, in the Link Builder - Target dialog:

    1. Type - Select Page in this Application.

    2. Page - Specify the target page number.

    3. Set Items - Select a Name and Value to specify session state for an item.

    4. Clear Session State, Clear Cache - Specify the page numbers on which to clear cache. To specify multiple page, enter a comma-delimited list of page numbers.

    5. Rest Pagination - Select Yes to reset pagination for this page.

    6. Advanced, Request - Specify the request to be used.

    7. Click OK.

  7. To create a link to a URL, in the Link Builder - Target dialog:

    1. Type - Select URL.

    2. URL - Enter the URL address.

    3. Click OK.

  8. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.9 Displaying Interactive Reports Conditionally

You can choose to have interactive reports display conditionally by editing region attributes.

To display an interactive report conditionally:

  1. View the region attributes. See "Editing Region Attributes in Page Designer."

  2. Locate and expand Condition.

  3. For Type, select a condition type and follow the on-screen instructions.

    Page Designer notifies you of errors and warnings you need to address before you can save the page. The Messages tab displays a red or yellow badge indicating the number of messages you need to address

  4. To save your changes click Save. To save and run the page, click Save and Run Page.

Tip:

Asynchronous JavaScript and XML (Ajax) is used throughout interactive reports. Because Ajax is asynchronous, the value evaluated for conditional display must be in the session. To display an interactive report conditionally based on specified value, use a page item instead of using a :REQUEST value. Using :REQUEST in a conditional display causes the interactive report function incorrectly.

10.4.10 Defining a Column as a List of Values in an Interactive Report

In interactive reports you can use a list of values to improve the speed of built-in filter tools.

To define a report column as a list of values:

  1. View the region attributes. See "Editing Region Attributes in Page Designer."

  2. Expand the Column node and select the desired column.

  3. Locate and expand Column Filter.

  4. For Column Filter, Type, select how to derive the filters provided in the report column drop down list. Options include:

    • None - Disable filter on list of values.

    • Default Based on Column Type - STRING and NUMBER columns derive the list of values from distinct column values. DATE columns derive the list of values from predefined date ranges.

    • Use Defined List of Values to Filter Word Contains - Derive the list of values from a defined list of values SQL query to create a contains filter.

    • Use Named List of Values to Filter Exact Match - Derive the list of values from the named list of values to create an equal filter.

    • Use Named List of Values to Filter Word Contains - Derive the list of values from the named list of values to create a contains filter.

  5. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.11 Enabling Icon View in Page Designer

By default, most interactive reports display as a report. You can optionally display columns as icons. When configured to display columns as icons, a View Icons icon displays on the Search bar.

Description of ir_search_bar_icon.png follows
Description of the illustration ''ir_search_bar_icon.png''

To use Icon view, you must identify the columns used to identify the icon, the label, and the target (that is, the link). As a best practice, set these columns to display as hidden since they are typically not useful for end users.

10.4.11.1 Adding a View Icon Button

To add Icon view to an interactive report:

  1. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    The Attributes page displays in the Property Editor.

  2. Locate and expand Icon View.

  3. Configure Icon View attributes:

    Tip:

    To view examples, see field-level Help.
    1. Enabled - Select Yes.

    2. Custom Icon View - Specify whether you wish to define a custom link for the Icon View. Select Yes or No. See "Adding a Custom Icon View Link."

    3. Columns Per Row - Select the number of icons to display per row in Icon View. A value of 5 displays 5 icons per row of the report.

    4. Link Column - Select the column that returns the link target of the icon.

    5. Image Source Column - Identify the column that returns the image source.

    6. Label Column - Select the column that returns the image label.

  4. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.11.2 Adding a Custom Icon View Link

A custom Icon View link provides greater flexibility in defining the content of the Icon View, including the ability to utilize more than one column.

To add a custom Icon View link:

  1. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    The Attributes page displays in the Property Editor.

  2. Locate and expand Icon View.

  3. Configure Icon View attributes:

    1. Enabled - Select Yes.

    2. Custom Icon View - Select Yes.

    3. Columns Per Page - Select the number of icons to display per row in Icon View. A value of 5 displays 5 icons per row of the report.

    4. Custom Link - Enter the column link for the Icon view. Use substitution strings for column names, for example:

      <a href="#EMP_LINK#"><img src="#EMP_IMG#" title="#ENAME#" alt="#ENAME#"><br>#ENAME#</a>
      
  4. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.12 Formatting Columns in an Interactive Report

You can use HTML expressions in interactive reports to further the customize column display.

To define column formatting:

  1. Edit the column attributes. See "Editing Column Attributes in Page Designer."

    The Interactive Report Attributes page appears.

  2. Locate and expand Column Formatting.

  3. In HTML Expression, specify HTML expressions to be shown for the column. Use #COLUMN# syntax to show column values in HTML.

    Example 1: Change the background and text colors

    <span style="background-color: yellow; color: red;">#EMPLOYEE_STATUS</span>
    

    Example 2: Use Heading 2

    <h2>#EMPLOYEE_NAME#</h2>
    

    Example 3: Use a dynamic class from the SQL query

    <span class="#COLUMN_CLASS#">#EMPLOYEE_STATUS#</span>
    

    The #COLUMN_CLASS# and #EMPLOYEE_STATUS# substitutions in this example are columns selected in the report SQL query.

    Example 4: Show an image, and a tooltip on hover

    <img src="#IMAGE_NAME#" title="#EMPLOYEE_NAME#">
    
  4. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.13 Enabling Detail View in Page Designer

Be default, most interactive reports display as a report. You can optionally display details about each column. When configured, a View Details icon displays on the Search bar.

Description of ir_search_bar_detail.png follows
Description of the illustration ''ir_search_bar_detail.png''

To add Details view to an interactive report:

  1. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    The Attributes page displays in the Property Editor.

  2. Locate and expand Detail View.

  3. Configure Detail View attributes:

    1. Enabled - Select Yes.

    2. Before Rows - Enter the HTML to be displayed before report rows. For example:

      <TABLE>
      
    3. For Each Row - Enter the body for report rows in the Detail View. Use #COLUMN_NAME# substitution strings for column names and column labels. For example:

      <tr><td class="u-textRight">#ENAME_LABEL#:</td><td>#ENAME#</td></tr>
      <tr><td class="u-textRight">#JOB_LABEL#:</td><td>#JOB#</td></tr>
      
    4. After Rows - Enter the HTML to be displayed after report rows. For example:

      </table>
      
  4. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.14 Configuring Advanced Attributes for Interactive Reports

This section describes how to configure Advanced interactive report attributes. Advanced attributes enable you to define the region alias, specify an item whose value stores the saved report ID, and define a from address in an interactive report subscription or email download.

10.4.14.1 Configuring Advanced Attributes in Page Designer

To configure Advanced Attributes:

  1. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

    The Attributes page displays in the Property Editor.

  2. Locate and expand Advanced.

    Table 10-5 describes the available Advanced Attributes.

    Table 10-5 Advanced Attributes

    Attribute Description

    Region Alias

    Enter an alphanumeric alias for this interactive report region. The alias must be unique within the application.

    Enter an alphanumeric alias for this interactive report region. The alias must be unique within the application. You can use an alias to reference an interactive report region in your custom API call. For example, you can write a function to return the INTERACTIVE_REPORT_ID by querying the ALIAS column in the APEX_APPLICATION_PAGE_IR view. Since the INTERACTIVE_REPORT_ID value can change when you export or import the application to different instance, referencing interactive report regions using an alias may be preferable.

    Maximum Row Count

    Enter the maximum number of rows to query. The number of rows you query can impact performance. Querying fewer rows can improve performance and querying thousands of rows can degrade performance.

    Report ID Item

    Select a page or application item to store the region ID for this report. This enables you to include the region ID, by referencing the value in this item, when defining a URL to navigate to a saved alternative or public report.

    Email From Address

    Enter a valid email address to use as the From address when sending email from this report. Emails are sent from this report for Downloads of type Email and for Subscriptions. The value can be a literal string containing a valid email address or a static substitution reference defined in the application using substitution syntax.

    Oracle does not recommend using an item substitution at the application or page-level since it only works in an email download, but not for subscriptions.

    Examples:

    john.doe@abc.com
    &MY_APP_EMAIL_FROM.
    &APP_EMAIL.
    

  3. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.14.2 About Emailing from an Interactive Report

You can define the from address for emails sent from an interactive report in two ways:

In either case, the value can be a literal string containing a valid email or an application substitution defined at the application-level using substitution syntax or &APP_EMAIL. substitution which returns the Application Email From Address defined at the application-level. Examples:

john.doe@abc.com
&MY_APP_EMAIL_FROM.
&APP_EMAIL.

Oracle does not recommend using an item substitution at the application or page-level since it only works in email download, but not for subscriptions.

10.4.15 Linking to Interactive Reports

Unlike classic reports which typically use page items as report parameters, the data in an interactive report is driven by declarative filters. However, the developer may want to set these report parameters by modifying interactive report settings for an end user. These settings only affect the end user's working report and do not affect any saved report settings. Use the syntax described in this section in the Request value and ItemNames section of the URL to link to interactive reports.

Note:

When you add additional interactive report regions, be sure to change the old single interactive report link syntax. Otherwise, the link generates an error. A link to a page with more than one interactive report regions, the request or name syntax needs to fully qualify with region static ID.

10.4.15.1 Request Syntax

To link to a specific saved report, use the following Request syntax:

IR[region static ID]_<report_alias>

Consider the following example:

IR[EMP]_dept20

Note:

The use of Request in the URL is optional. To link to multiple saved reports, separate each Request with comma.

10.4.15.2 Name and Value Syntax

To create a filter, use the following itemNames and itemValues syntax:

IR[region static ID]<operator>_<target column alias>

Consider the following example:

IR[EMP]C_ENAME:KING

Note:

If there is only one interactive report region on the page, the itemName does not need to be fully qualified with the region static ID. If an operator is not defined, a filter with equal operator is added.

To create a filter on an interactive report in a link, use the itemNames syntax described previously and add the filter value in the corresponding location in the item names section of the URL.

To create row text which contains a filter on an interactive report, use ROWFILTER as the target column alias in the item name syntax and add a filter value in the item itemValues of the URL. The link will add a Row Text Contains filter which searches all columns displayed in the report with type STRING or NUMBER.

Consider the following example:

IR[EMP]_ROWFILTER:SALES

Valid operators include:

  • C = Contains

  • EQ = Equals (this is the default)

  • GTE = Greater than or equal to

  • GT = Greater Than

  • LIKE = SQL Like operator

  • LT = Less than

  • LTE = Less than or equal to

  • N = Null

  • NC = Not Contains

  • NEQ = Not Equals

  • NLIKE = Not Like

  • NN = Not Null

  • NIN = Not In (escape the comma separated values with backslash, \)

  • IN = In (escape the comma separated values with backslash, \)

  • ROWFILTER = Row Text Contains (this searches all columns displayed in the report with type STRING or NUMBER)

10.4.15.3 ClearCache Syntax

Tip:

Using ClearCache used without specifying a saved report alias in the Request, clears the primary default report. To clear a specific interactive report region on a page with more than one interactive reports, specify the region static ID along with saved report alias in the Request.

Use the following syntax in the ClearCache section of the URL to reset, clear, or reset pagination the interactive report:

  • RIR - Resets an interactive report. This is equivalent to the end user choosing the Reset option from the interactive report Actions menu on the target page. The report is returned to the default report settings specified by the developer or saved by the user.

  • CIR - Clears interactive report. This clears all of the report settings such as control break, aggregate, flashback, chart, number of rows to display, filter, highlight, computation, group by, and pivot.

  • RP - Resets interactive report pagination.

10.4.15.4 Restrictions When Linking to Interactive Reports

When linking to interactive reports, remember the following restrictions:

  1. If a Request value is not defined in the URL, all of the primary default report settings will change.

  2. If a Request value is not defined and itemNames section does not include a fully qualified filter column name with region static ID, an error occurs if there are more than one interactive report region in the target page.

  3. If a Request value is not defined and itemNames section do not include a fully qualified filter column name with region static ID, it will create a filter on the primary default report if there is only one interactive report region in the target page.

10.4.15.5 Valid Linking Examples

This section contains valid linking examples.

Valid Linking Example 1

This example includes a link with no Request value, but includes a qualified filter column with region static ID in the itemNames section of the URL. This example creates a filter on the primary default report in the referenced region item name.

f?p=&APP_ID.:2:&SESSION.::::IR[EMP]_ENAME:KING

Valid Linking Example 2

To support backwards compatibility with previous releases, this example uses older syntax and works on a page with one interactive report region.

?p=&APP_ID.:1:&SESSION.:IR_REPORT_12345::RIR,CIR::RIR,CIR:IR_ENAME:KING

Valid Linking Example 3

In this example the link has no Request value. The clear cache section has RIR or CIR or RP and will reset, clear, or reset the pagination of the primary default reports of all interactive report regions.

f?p=&APP_ID.:1:&SESSION.:::RIR:

10.4.15.6 Invalid Linking Examples

This section contains invalid linking examples.

Invalid Linking Example 1

This link has no Request value and does not include a fully qualified filter column with region static ID in the item name section of the URL. This example generates an error if there is more than one interactive report region in the target page.

f?p=&APP_ID.:2:&SESSION.::::ENAME:KING

Invalid Linking Example 2

This example has a link with two request values separated by commas and does not contain a fully qualified filter column with region static ID in the item name section of the URL. This example generates an error since it is not clear where the filter needs to be created.

f?p=&APP_ID.:2:&SESSION.:IR[test]_employee,IR[test2]_dept10:::ENAME:KING

Invalid Linking Example 3

This example uses old request value syntax used on a page with multiple interactive report regions. This example will generate an error. The old syntax only works if there is one interactive report region.

f?p=&APP_ID.:2:&SESSION.:IR_REPORT_myrpt:::ENAME:KING

10.4.15.7 Linking to Shared Interactive Reports

This section describes how to link to saved primary default, alternative default, and public reports using IR[region static ID]_<report_alias> in the Request value of the URL.

10.4.15.7.1 Editing the Alias of Default Report in Page Designer

You can view attributes for default interactive reports in the Property Editor.

To view attributes for a default interactive report:

  1. View the attributes for the report. See "Editing Interactive Report Attributes in Page Designer."

  2. Under Attributes, expand Saved Reports.

  3. Select a saved report.

    The Saved Report attributes display in the Property Editor.

  4. Expand Identification.

  5. In Alias, enter a new alias for this report. Use this alias to define a more meaningful URL link to this saved report. This link can be used to link directly from elsewhere in the application.

    To learn more, see field-level Help. See "Viewing Help in Page Designer."

  6. To save your changes click Save. To save and run the page, click Save and Run Page.

10.4.15.7.2 Link Examples to a Primary Report

The following examples demonstrate how to link to a primary report (report_alias=PRIMARY):

This example links to a primary report:

f?p=100:1:&APP_SESSION.:IR_PRIMARY

This example links, resets, and clears primary report settings:

f?p=100:1:&APP_SESSION.:IR_PRIMARY::RIR,CIR:

This example links, resets, and clears primary report settings. It additionally creates a ENAME = 'KING' filter on the primary report:

f?p=100:1:&APP_SESSION.:IR_PRIMARY::RIR,CIR:IR_ENAME:KING

10.4.15.7.3 Link Examples to Saved Reports

The following examples demonstrate how to link to a saved report (report_alias=12345):

This example links to a saved report:

f?p=100:1:&SESSION.:IR_REPORT1

This example links, resets, and clears settings for saved report REPORT1:

f?p=100:1:&SESSION.:IR_REPORT1::RIR,CIR:

This example links, resets, and clears saved report REPORT1 settings. It additionally creates a ENAME = 'KING' filter on saved report REPORT1.

f?p=100:1:&SESSION.:IR_REPORT1::RIR,CIR::RIR,CIR:IR_ENAME:KING