Layout Filter

Layout filter helps you to specify the filter criteria for an object and displays the filtered data of the object in the data window. The layout filter provides an easy way to control which fields are viewed and how records are formatted. After you select a DB2 object from the Data Source Explorer, double-click the object. The Layout filter for the object appears.

You can use layout filter to specify filter criteria for an object and to populate the data window with the filtered data.

Follow these steps:

  1. Select the columns which you want to be displayed on the Data Window.

    All the columns are selected by default.

    Note: You cannot move the not-null and primary key columns from the Selected Columns list to the Available Columns list.

  2. Select and arrange the columns in an order as needed.
  3. (Optional) Specify a where clause to the table.

    You can also arrange the columns in ascending or descending order using the order by option.

  4. Depending upon the selection you have made a query will be created on the fly.
  5. Click Ok to submit the query and populate the objects filtered data in the data window.
  6. (Optional) You can also use the Copy SQL to copy the generated SQL to system clipboard.
  7. (Optional) You can also specify a SQL ID other than the default value to submit the query.

The data is fetched from the database and filtered according to the filter criteria you have specified. The filtered data is populated in the data window.