Predefined Filter dialog
This dialog appears when you click Tools > Predefined Filter on the menu bar or the Predefined Filter button on the toolbar of the Business Cube Editor window, Report Cube Editor window or Business View Editor window. It helps you to add some predefined filters to a business cube/report cube/business view. The predefined filters can be applied when creating/modifying reports based on the business cube/report cube/business view in JReport Server by end users. See the dialog.
The following are details about options in the dialog:
Filters
Lists all the predefined filters in the business cube/report cube/business view. You can modify a filter's name and description in the box.
- New
Creates a filter.
- Delete
Removes the selected filter.
Condition
Specifies the filter conditions.
- Add Condition
Adds a new condition line.
- Delete
Deletes the selected condition line.
- Group
Makes the selected conditions in one group.
- Ungroup
Makes the selected condition ungrouped.
- Up
Moves the selected condition or group up to a higher level.
- Down
Moves the selected condition or group down to a lower level.
- Logic
Lists the logic operator.
- And
Logic operator And which is applied to this and the next line or group.
- Or
Logic operator Or which is applied to this and the next line or group.
- Field
Specifies the field to be filtered. You can either type in the field directly or click next to the text box to specify the field.
- Operator
Specifies the operator to compose the filter expression.
- =
Equal to
- >=
Greater than or equal to
- >
Greater than
- <
Less than
- <=
Less than or equal to
- !=
Not equal to
- [not] in
Causes an enumerated list of values to appear in the WHERE clause predicate, used for evaluating for a true condition. For operator ‘in' or ‘not in', it is allowed to input multiple values in the Value input box and separate the values with comma (,).
- [not] like
Like string pattern matching operator is used to compare the first expression string value to the pattern string (the second expression). If you want to use wildcard character in the pattern string, only "_" and "%" are supported.
- [not] between
Allows the system to evaluate whether or not data values are located between a range of values indicated in the predicate. For operator ‘between' or ‘not between', there are two value input boxes for inputting the same type of values.
- is [not] null
It is used in WHERE clause predicates to match null values occurring in a specified data field. For operator ‘is null' or ‘is not null', the value input box is hidden.
- Value
Specifies the value of how to filter the field. You can either click next to the text box to specify the value or type the value in the text box manually.
When you click to specify the value, the Values dialog is displayed.
- Fields tab
Lists the fields which can be used in the filter expression. Double-click the required field to add it as the filter value.
- Value tab
Lists values of the field to be filtered. Double-click the required value to add it as the filter value.
When you type in the value, if multiple values are required, they should be separated with ",", and if "," or "\" is contained in the values, write it as "\," or "\\".
- SQL Statement
Displays the SQL statement of the filter condition.
OK
Applies the changes and closes the dialog.
Cancel
Cancels the changes and exits the dialog.
Help
Displays the help document about this feature.
Related topics: