Home > Adding Application Components > Creating Reports > Editing Interactive Reports...
Previous |
Next |
By default, an interactive report includes a Search Bar which contains a search icon, text area, Go button, and Actions menu. 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 by editing report attributes.
Topics:
You customize an interactive report by editing attributes on the Interactive Report Attributes page.
To access the Report Attributes page:
On the Workspace home page, click the Application Builder icon.
Select the application.
Select the page containing the interactive report you wish to edit.
The Page Definition appears.
To access the Interactive Report Attributes page:
Tree view - Right-click on the Region name and select Edit Report Attributes.
Component view - Under Regions, click the Interactive Report link next to the name of the report region you want to edit.
The Report Attributes page appears and is divided into the following sections:
Column Attributes control the report layout. See "Editing Interactive Report Column Attributes".
Column Groups attributes enable you to group columns together on the single row view. See "Creating Column Groups".
Pagination attributes control report pagination. See "Controlling Interactive Report Pagination".
Sorting attributes enable you to define images and image attributes for images that display in report headings to sort values. See "Managing Interactive Report Column Sorting".
Search Bar contain attributes that enable you to define the search bar within an interactive report. See "Customizing the Interactive Report Search Bar".
Download enables you to add a download option to the Actions menu and export the report as CSV, HTML, Email, XLS, PDF, or RTF file. See "Configuring Download Options on the Actions Menu".
Link Column attributes enable you to add a link to a column. See "Understanding Link Columns" and "Creating a Column Link in an Interactive Report".
Icon View attributes enable you to add a View Icons icon to the Search bar. See "Enabling Icon View".
Detail View attributes enable you to add a View Details icon to the Search bar. See "Enabling Detail View".
Advanced Attributes enable you to define the Interactive Report region alias, specify an item whose value stores the saved report id, and define items to set into session state. See "Configuring Advanced Attributes for Interactive Reports".
Description lists a textual description of the current report.
To learn more about a specific attribute, click the item label.
When Help is available, the item label changes to red when you pass your cursor over it and the cursor changes to an arrow and question mark. See "About Field-Level Help".
The Report Attribute page is divided into these sections: Column Attributes, Groups, Pagination, Sorting, Search Bar, Download, Link Column, Icon View, Detail View, Advanced, and Description.
You can access these sections by scrolling down the page, or by clicking a navigation button at the top of the page.
When you select a button at the top of the page, the selected section appears and all other sections are temporarily hidden. To view all sections of the page, click Show All.
You can use the Column Attributes section of the Report Attributes page to precisely control the report layout. For example, you can use these attributes to alter column heading text, change column positioning, or hide a column.
To access Column Attributes:
On the Workspace home page, click Application Builder.
Select the application.
Select the page containing the interactive report you wish to edit.
The Page Definition appears.
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears with the Column Attributes section at the top of the page.
Use the Column Attributes section to control report column appearance and functionality.
Heading displays the heading text to be included in the report. Type indicates the type of query column. The Link column indicates if a link column is currently defined.
Table: Common Report Column Edits for Interactive Reports describes common report column edits.
Common Report Column Edits for Interactive Reports
Description | Developer Action |
---|---|
Alter column display sequence. |
Click the up and down arrows to change the column display sequence. Note that this display sequence is only used in the Single Row View if enabled. It does not affect report column display. The report column display can be changed when you run the report and save. |
Change column group assignment. |
If Column Groups are defined, individual columns can be assigned under Column Group. |
Change column heading text. |
Under Heading, enter different heading text. |
Change how columns display. |
Select an option from Display Text As. |
You can further refine the attributes of a specific column on the Column Attributes page.
To access the Column Attributes page, click the Edit icon next to the appropriate column Alias.
The Column Definition appears.
Use the check boxes under Allow Users To to control how users manipulate the report. Options include: Hide, Sort, Filter, Highlight, Control Break, Aggregate, Compute, Chart, and Group By.
Under Column Definition, Allow Users To, select the appropriate check boxes.
To learn more about a specific attribute, click the item label.
Use column groups to group columns together on a single row view.
To create a column group:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Scroll down to Column Groups.
Click Add Group.
Under Column Group:
Sequence - Enter the display sequence for this column group. This attribute determines the order in which the column groups display in the detail view.
Group Name - Enter a column group name. This name displays in the region header in detailed view.
Description - Enter an optional description for the column group. This description never displays to the end user.
Click Create.
You control how pagination displays by making selections from Pagination attributes on the Interactive Report Attributes page.
To access the Pagination section of the Report Attributes page:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Scroll down to Pagination.
You use the Pagination attributes to select a pagination style, determine where pagination occurs, specify the maximum number of rows to query, and messages to display when more than the maximum number of rows are returned or if no rows are returned.
Table: Pagination Attributes describes the available Pagination attributes.
Pagination Attributes
Attribute | Description |
---|---|
Pagination Type |
Select a pagination type. Pagination provides the user with information about the number of rows and the current position within the result set. Pagination can be displayed above or below the report (or both) and can be positioned on the left or right. Available pagination options include:
|
Pagination Display Position |
Defines where pagination occurs. Pagination can be display on the left side, right side, at the bottom, or above the report. |
Show Null Values as |
Enter the text you want to display for null columns. The default value is |
Maximum Row Count |
Defines the maximum number of rows to query, for example, rows 1 - 10 or 456. If you set this attribute to 200, the result would appear as follows:
Note that this attribute impacts performance. Counting fewer rows can improve performance and counting thousands of rows can degrade performance. |
When more than maximum row data found message |
Defines the text message that displays when more than maximum row count are returned. |
When No Data Found Message |
Defines the text message that displays when the query does not return any rows. |
You manage column sorting on the Interactive Report Attributes page.
To manage column sorting:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Under Column Attributes, click the Edit icon for the column for which you want to enable sorting.
Under Column Definition, select Sort and click Apply Changes.
The Interactive Report Attributes page appears.
Scroll down to Sorting.
Specify ascending and descending image attributes and click Apply Changes.
A search bar displays at the top of every interactive report and includes a Search icon, Text area, Go button, and Actions menu.
You can remove or customize the search bar by selecting and deselecting options in the Search Bar section of the Interactive Reports Attributes page.
Topics:
To customize the search bar:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Scroll down to Search Bar.
Use these attributes to customize how the search bar displays. Table: Search Bar Attributes describes Search bar attributes:
Search Bar Attributes
Attribute | Description |
---|---|
Include Search Bar |
Select Yes or No. Selecting No removes the following default components:
|
Include in Actions Menu |
Select and deselect functions included in the Actions menu. Available options include:
See Also: "Using the Actions Menu". |
Save Report Public Authorization |
Users can save reports and classify them as being either public or private. Public reports can be viewed by all users. Private reports can only be viewed by the user who saved the report. In addition to enabling Save Public Report under Actions Menu, you can add additional security by defining an Authorization Scheme to determine who has rights to enable Save Public Report. To enable support for public reports, select an authentication method from this list. |
Button Template |
Select a template for buttons that display in the search region and in the dialogs. |
Finder Image |
Specify an image. If no image is defined, the following is used: /i/htmldb/builder/finder_w_dropdown.gif |
Actions Menu Image |
Specify an image. If no image is defined, the default button will be used. |
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. |
Click Apply Changes.
To remove the search bar:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Scroll down to Search Bar.
From Include Search Bar, select No.
Click Apply Changes.
You can add 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.
To configure download formats:
Navigate to the page containing the interactive report.
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Scroll down to Search Bar.
For Include Search Bar, select Yes and then select Actions Menu.
Under Include in Actions menu, select Download.
Scroll down to Download.
Select download formats. Options include:
CSV. See "Enabling CSV Download".
HTML.
Email. See "Enabling Email Download".
XLS.
PDF. See "About Printing Reports to PDF".
RTF.
Tip: The Download option only appears on the Actions menu if a file format is selected. |
Click Apply Changes.
To enable the Enable CSV download:
Enable the CSV output option on the Edit Globalization Attributes page. See "Accessing the Globalization Attributes Page" and "Automatic CSV Encoding".
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Scroll down to Search Bar.
For Include Search Bar, select Yes and then select Actions Menu.
Under Include in Actions menu, select Download.
Scroll down to Download.
From Download Formats, select CSV.
Tip: The Download option only appears on the Actions menu if a file format is selected. |
In the CSV Separator, define the column separator. If no value is entered, a comma or semicolon is used depending on your current NLS settings.
In the CSV Enclosed By, enter delimiter character. This character is used to delineate the starting and ending boundary of a data value. Default delimiter is double quotation marks (" ").
In 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.
Click Apply Changes.
You can configure the Download option to send static HTML report to specific email addresses.
To enable email download:
An Oracle Application Express administrator must configure email at the Instance level. See "Configuring Mail" in Oracle Application Express Administration Guide
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Scroll down to Search Bar.
For Include Search Bar, select Yes and then select Actions Menu.
Under Include in Actions menu, select Download.
Scroll down to Download.
From Download Formats, select Email.
Tip: The Download option only appears on the Actions menu if a file format is selected. |
Click Apply Changes.
A Link Column displays on the left side of an interactive report. It can link to a single row view, a custom target, or be excluded from the report. Note that 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.
To link to a single row view:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Scroll down to Link Column.
For Link Column, select Link to Single Row View.
From Single Row View, select the appropriate options:
Allow Exclude Null Values - Excludes columns with null values.
Allow Displayed Columns - Displays only the columns shown in the report.
For Uniquely Identify Rows by, select ROWID or Unique Column.
If you select, Unique Column, specify the column in the Unique Column field.
For Link Icon, select an icon.
For Link Attributes (Optional), specify additional column link attributes to be included in the <a href= >
tag (for example, a link target, classes, or styles).
Click Apply Changes.
To link to a specific page:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Scroll down to Link Column.
For Link Column, select Link to Custom Target.
For Link Icon, select an icon.
For Link Attributes (Optional), specify additional column link attributes to be included in the <a href= >
tag (for example, a link target, classes, or styles).
For Target, select Page in this Application.
For Page, select the target page number. To reset the pagination for this page, select Reset Pagination.
For Request, specify the request to be used.
For Clear Cache, specify the pages (that is, the page numbers) on which to clear cache. You can specify multiple pages by listing the page numbers in a comma-delimited list. See "Linking to Interactive Reports".
For Name and Value, specify session state for a specific item.
Click Apply Changes.
To link to a URL:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Scroll down to Link Column.
For Link Column, select Link to Custom Target.
For Link Icon, select an icon.
For Link Attributes (Optional), specify additional column link attributes that to be included in the <a href= >
tag (for example, a link target, classes, or styles).
From Target, select URL.
In URL, enter the appropriate address.
For Checksum - Select one of the following:
Use default
Application Level - Link reusable by any user
User Level - Link reusable by current user
To learn more about each option, see item Help.
Click Apply Changes.
To exclude a column link:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Scroll down to Link Column.
For Link Column, select Exclude Link Column.
Click Apply Changes.
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:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Under Column Attributes, locate the column to contain the link.
Click the Edit icon next to the column name.
The Column Attributes page appears.
Scroll down to Column Link.
To create a column link to another page:
From Target, select Page in this Application.
(Optional) In Link Attributes, specify additional column link attributes to be included in the <a href= >
tag (for example, a link target, classes, or styles).
In Link Text, enter the text to be displayed as a link, specify an image tag, or pick from the list of default images.
In Page, specify the target page number. To reset the pagination for this page, select Reset Pagination.
In Request, specify the request to be used.
In Clear Cache, specify the pages (that is, the page numbers) on which to clear cache. You can specify multiple pages by listing the page numbers in a comma-delimited list.
Use the Name and Value fields to specify session state for a specific item.
For Checksum - Select one of the following:
Use default
Application Level - Link reusable by any user
User Level - Link reusable by current user
To learn more about each option, see item Help.
Click Apply Changes.
To create a column link to a URL:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Access the Column Attributes page by clicking the Edit icon next to the appropriate column.
The Column Attributes page appears.
Scroll down to Column Link.
Under Column Link, specify the following:
From Target, select URL.
In Link Text, enter the text to be displayed as a link and select a substitution string.
(Optional) In Link Attributes, specify additional column link attributes to be included in the <a href= >
tag (for example, a link target, classes, or styles).
In URL, enter the appropriate address.
Click Apply Changes.
You can choose to have interactive reports display conditionally by editing region attributes on the Edit Region page.
To display an interactive report conditionally:
Navigate to the appropriate Page Definition. See "Accessing the Page Definition".
Access the Edit Region page:
Component view - Under Regions, select the region name.
Tree view - Right-click the region name and select Edit.
The Edit Region page appears.
Scroll down to Conditions.
From the Condition Type list, make a selection.
Enter an expression in the fields provided.
Click Apply Changes.
Tip: Asynchronous JavaScript and XML (AJAX) is used throughout interactive reports. Because AJAX is asynchronous, the value evaluated for conditional display needs to 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 in the interactive report function incorrectly. |
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:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Access the Column Attributes page by clicking the Edit icon next to the appropriate column.
The Column Attributes page appears.
Scroll down to List of Values.
From Column Filter List of Values, specify how to create a list of values as a filter on the report column list. Available 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.
Click Apply Changes.
Be default, most interactive reports display as a report. You can optionally display columns as icons. When configured, a View Icons icon displays on the Search bar.
To utilize 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.
To add Icon view to an interactive report:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Scroll down to Icon View.
For Icon View Enabled, select Yes.
Specify the following mandatory attributes:
Link Column - Select the column that returns the link target of the icon. See item Help for an example.
Image Source Column - Identify the column that returns the image source. See item Help for an example.
Label Column - Select the column that returns the image label. See item Help for an example.
For Columns Per Row, identify the number of icons to be displayed per row. A value of 5
would display 5 icons per row.
Click Apply Changes.
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.
To add Details view to an interactive report:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Scroll down to Detail View.
For Detail View Enabled, select Yes.
Specify the following attributes:
Before Rows - Enter the HTML to be displayed before report rows. For example:
<TABLE>
For Each Row (Use #COLUMN_ALIAS# substitutions) - Use substitution strings for column names and column labels. For example:
<tr><td align="right">#ENAME_LABEL#:</td><td>#ENAME#</td></tr> <tr><td align="right">#JOB_LABEL#:</td><td>#JOB#</td></tr
AFter Rows - Enter the HTML to be displayed after report rows. For example:
</TABLE>
Click Apply Changes.
Use the Advanced Attributes section to define the Interactive Report region alias, specify an item whose value stores the saved report id, and define items to set into session state.
To configure Advanced Attributes:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Scroll down to Advanced Attributes.
Table: Advanced Attributes describes the available Advanced Attributes.
Advanced Attributes
Attribute | Description |
---|---|
Region Alias |
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 in an API call. For example, you can write a function to return |
Report ID Item |
This attribute enables you to send a user directly to a saved view of the report. You specify an item whose value stores the report ID of the saved view. Report ID's can be retrieved from the |
Page Items to Submit |
Enter a comma separated list of items to be set into session state when the user clicks the Go button on the search bar. Only items on the current page will be set. |
Click Apply Changes.
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 desire 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 will not affect any saved report settings.
To reset an interactive report in a link, use the string "RIR"
in the Clear-Cache section of a URL. 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.
To create a Row text contains filter on an interactive report, use the string IR_ROWFILTER
in the Item Names section of the URL. Adding this string passes the filter value in the corresponding location in the Item Values section of the URL.
To create a filter on an interactive report in a link, use the string IR<operator>_<target column alias>
in the Item Names section of the URL, and pass the filter value in the corresponding location in the Item Values section of the URL.
Valid operators include:
EQ
= Equals (this is the default)
NEQ
= Not Equals
LT
= Less than
LTE
= Less then or equal to
GT
= Greater Than
GTE
= Greater than or equal to
LIKE
= SQL Like operator
N
= Null
NN
= Not Null
C
= Contains
NC
= Not Contains
Consider the following examples:
f?p=...:IR_ENAME:KING
The previous example is equivalent to the end user creating a filter on the target page: ENAME = KING
. Note that when an operator is not provided, EQ
is used because it is the default.
f?p=...:IRGT_SAL:3000
The previous example is equivalent to the end user creating a filter on the target page: SAL > 3000
.
You can link to saved primary default, alternative default and public reports using IR_REPORT_[report_alias]
in the request value of the URL.
The following examples demonstrate how to link to a primary report (report_alias=12345):
This example links to a primary report:
f?p=100:1:&APP_SESSION.:IR_REPORT_12345
This example links, resets, and clears primary report settings:
f?p=100:1:&APP_SESSION.:IR_REPORT_12345::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_REPORT_12345::RIR,CIR:IR_ENAME:KING
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_REPORT_1234
This example links, resets, and clears settings for saved report 12345:
f?p=100:1:&SESSION.:IR_REPORT_12345::RIR,CIR:
This example links, resets, and clears saved report 12345 settings. It additionally creates a ENAME = 'KING'
filter on saved report 12345.
f?p=100:1:&SESSION.:IR_REPORT_12345::RIR,CIR::RIR,CIR:IR_ENAME:KING
Note that if you reset, clear, or create filter using URL without the IR_REPORT_[report_alias]
request value, it resets, clears, and creates filter on the primary report. For example, this link goes to the primary report:
f?p=100:1:&SESSION.:::RIR,CIR:IR_ENAME:KING
Developers can edit the report alias or view link examples by going to Saved Reports page.
To access the Saved Reports page.
On the Workspace home page, click the Application Builder icon.
Select the application.
Go to the Page Definition containing the saved interactive report.
The Page Definition appears.
To access the Saved Reports page:
Tree view - Right-click the Region name and select Edit Saved Reports.
Component view - Under Regions, click the Saved Reports link.
The Saved Reports page appears.
In Report Alias, you can either:
Enter a new alias for the saved report
Copy and paste the link example to link to a specific saved report
Click Apply Changes.
Each interactive report can have multiple default reports. A report categorized as Primary Default displays initially and cannot be renamed nor deleted. A report saved as Alternative Default can be selected from Reports list on the Search bar.
End users can also save reports and classify them as being either public or private. Public reports can be viewed by all users. Private reports can only be viewed by the user who saved the report. To learn more see, "Saving a Report".
To view a listing of Saved Reports:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
Click the Saved Reports tab.
A report displays all saved reports by report type, report name, owner, and report alias.
To delete a report, select it and click Delete Checked.
Developers can view saved report activity by clicking the View Saved Report Activity link under Tasks on the Edit Report Attributes page. This link only displays if saved reports other than the primary default report exist. You can use this page to determine which reports are being used and which ones are not.
To view saved report activity:
Access the Interactive Report Attributes page. See "Accessing the Interactive Report Attributes Page".
The Interactive Report Attributes page appears.
On the Tasks list, click View Saved Report Activity.
Tip: You can also view saved report activity from the Workspace Administration page. On the Workspace home page, click Administration and then Monitory Activity. Under Page Views, click by Interactive Report. |