Column attributes enable developers to control the display, features, and behavior of interactive grid columns. Developers edit Column attributes to alter nearly all aspects of column behavior, including altering the layout and appearance, creating validations, defining column links, creating column filters, and adding support for export and printing.
Note:
Some settings are configured at runtime by the report developer and saved as part of the primary or alternate report (for example, column display order, the columns the report is sorted on, and column widths. To learn more about save options, see "Saving Interactive Grids."
See Also:
Parent topic: Managing Interactive Reports
Edit Column attributes to precisely control the report layout. For example, you can use these attributes to alter a column heading, change column positioning, hide a column, or control how users can manipulate a column.
To edit column attributes:
To edit column attributes:
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:
Parent topic: Managing Interactive Report Column Attributes
Add a list of values in an interactive report to improve the speed of built-in filter tools.
To define a report column as a list of values:
Parent topic: Managing Interactive Report Column Attributes
You can use HTML expressions in interactive reports to further the customize column display.
To define column formatting:
Parent topic: Managing Interactive Report Column Attributes
If an interactive report has a column value that is a link and the link markup is constructed in the report query, attempting to define a filter on this value from the column header menu fails. Oracle Application Express is not be able to render the link correctly in the column header menu because the column values are themselves rendered as links, such that they can be selected to apply the filter. If the developer wanted to conditionally render the link based on query logic, the link may have been defined in the report query as opposed to using the declarative column link support.
For filtering to work on conditional links in columns, developers have two options:
Option 1: Use an HTML Expression column:
Add another column to your query that selects the equivalent of the link text from the link and define a column alias of my_link_display
. This column alias will be the value used in the column header menu.
Change the my_link
column to be of type Hidden Column.
In the my_link_display
column, set the column heading to be the same as the my_link
column and set HTML Expression to be #MY_LINK#
. Keep the default Escape Special Characters as Yes.
Run the page.
If needed, reorder the columns so that the new column in the same position as the old one. Select the Actions menu and then Select Columns.
Save a new default report. Select the Actions menu, Save Report, and then Save as Default Report Settings.
The link still renders fine in the report and the column header menu now renders just the my_link_display
value which sets the filter correctly.
Option 2: Use a custom Column Filter for the link column, where you could query for the link text.
See Also:
Parent topic: Managing Interactive Report Column Attributes