Pre-filters are defined as optional filterString elements inside of jdbcTable and jdbcQuery elements. They impose a condition on any results returned for that table, query, or join tree, thereby limiting the number of rows returned when accessing the data source. Whereas other settings mainly determine which columns are available for use in a report, a pre-filter determines which rows are available when running the report.
filterString
filterString contains an expression that evaluates to true or false when applied to each row of values in the data source. The parent of filterString is one of the following:
• | a jdbcTable element for a table |
• | a jdbcTable element for a join |
• | a jdbcQuery element |
The expression refers to columns using their id attribute. Thus, a filter on a table or derived table refers to the simple column name, but a filter on a join tree refers to the table_ID.field_name. The full syntax for the expression is documented in Domain Expression Language (DomEL).
Filters defined in the Domain Designer are limited to conditions on one column or comparisons of two columns, with more complex filters created by the conjunction (logical AND) of several conditions. Other filter expressions are not supported. You can upload a design file with more complex filters, but these filters are not editable in the Domain Designer. |
Examples
The following is an example of filterString used in a jdbcTable element representing a table:
... opportunity_type == 'Existing Business'[/code] |
The following is an example of filterString used in a jdbcQuery element:
[/code] |
Recommended Comments
There are no comments to display.