WHERE Portion Editor
The Where Portion Editor Window allows you to edit the WHERE portions in the JReport catalogs.
A WHERE portion, as the term suggests, is the WHERE clause in
a SQL SELECT statement. In JReport, we call SQL SELECT statements as
queries. Both queries and WHERE portions are stored in the catalog. And WHERE
portions are saved in the catalog independently (not relate to queries). When a
report is running, JReport will construct the SQL statement based on the query used in the
report and may substitute the WHERE clause in the SQL statement if there is a given WHERE
portion.
User can specify a WHERE portion to JReport system before run ( running) a report, so that he can generate the report on different data.
The WHERE portion can be stored in the catalog in two formats: structure and string. In the structure format, the groups of condition are stored. The WHERE portion consists of many condition groups and the groups (are) connected by logical operator. Each group consists of many conditions and the conditions(are) connected by logical operator too; Each condition consists of the left expression, the relationship operator and the right expression. In the string format, the text of the WHERE portion is stored.
The WHERE portion editor window is vary (varies) with the formats of WHERE portion.

Figure-1 WHERE Portion Editor -- Structure type

Figure-2 WHERE Portion Editor -- String type