Create Table

The Table option is displayed only for data control accessors that return a collection of objects that can be displayed in the columns of a table.

When you add a data control to a task flow as a table, you have two options:

  • Read-only Table—Add the data control as a read-only table. The content in the table cannot be edited.

  • Table—Editable tables are not currently supported.

To present data as a table:

  1. On the Type page of the Create Table wizard, select Read-only Table.
  2. (Optional) In the Behavior section, select one or more of the following options to enable customization of the table:
    • Row Selection—Enables selection of a row on which the user can perform any operation.

      When you enable row selection in a table and select a row, internally, the column values of the selected row are added into a row selection bean. The column values are stored in the following EL format:

      #{dataComposerViewContext.dataSelection.COLUMN_NAME}
      

      You can use this format to reference the table columns from elsewhere in the task flow. Typically, this is useful in task flows where data presentations are wired in a master-detail relationship.

      Note:

      Row selection is not supported if the data control contains bind parameters.

    • Filtering—Displays a text field above each column in the table. Users can specify a filter criteria in these text fields to display only those rows that match the criteria.

    • Sorting—Displays Up and Down arrows in each column header that users can click to sort the table in ascending or descending order by that column.

  3. Click Next.
  4. On the Items page, by default all the accessor attributes are selected to display in the table. If there are any accessor attributes that you do not want to display in the table, select them in the Selected Items list and move them to the Available Items list.

    Note:

    If an item has a scalar value, you cannot add the item to the table after initial creation.

  5. Use the arrow icons next to the Selected Items list to determine the order in which the attributes are displayed as columns in the table.
  6. Click Next.
  7. On the Columns page, for each column in the table, specify display options as follows:
    • Column Header—Specify a name to use as a header for the selected column.

    • Display As—Select an output format for the column:

      • Output Text—Display data records as styled read-only text.

      • Output Formatted—Display data records as read-only text with limited formatting.

      • Hyperlink—Display data in the selected column as a link, for example, when connecting to an employee database, you can display employee names as hyperlinks so that, when users click a link, it takes them to the employees profile page.

    • Align—Select whether the data in the table cells must be aligned to the center, end, left, right, or start.

    • URL—Create dynamic URLs based on the values coming from the data control. Specify the URL along with the EL value that must be appended to the URL. The URL field is enabled only if you selected Hyperlink in the Display As list.

      For example, if you are adding a WebCenter Portal service data control as a table that lists the portals of which the current user is a member, you can enter /spaces/#{row.item} in the URL field to display portal names as hyperlinks. Clicking a portal name in the table opens the portal.

    • Open in New Window—Select whether to open the URL in a separate window. This check box is available only if you selected Hyperlink in the Display As list.

  8. If the data control has associated parameters that you want to expose on a parameter form, click Next.
    1. On the Visualization Parameter page, select the check box next to the parameter for which you want users to be able to provide their own values.

      Any parameters you select in this way are displayed in a parameter form above the table, form, or graph that you are adding. Users can specify a value and click a button to refresh the data according to the values they specified.

    2. On the Visualization Parameter page, select the check box next to the parameter for which you want users to be able to provide their own values.

      The initial value displayed in this field is specified when the data control was created. You can override this initial value to control the initial display of data.

    3. In the Submit Button Label field, enter the text that you want to be displayed on the button that users click to submit values on the parameter form.
  9. Click Create.