Edit Sort and Filter dialog

This dialog appears when you select Report > Edit Sort and Filter. It helps you to predefine the sort and filter conditions for viewing reports in JReport Web.

Note: The Sort and Filter conditions you defined in the dialog work for JReport Web only, and will not affect the preview result in JReport Designer.

This dialog consists of the following two tabs:

Edit Display Name

Opens the Edit Display Name dialog to add or remove display name fields.

OK

Accepts the changes you've made and closes this dialog.

Cancel

Does not retain any changes and closes the dialog.

Help

Displays this help document.

Sort tab

Defines the sorting conditions. See the tab.

Fields

Lists all fields that are available to be sorted on.

Sort By

Lists the fields that are selected. Report data will be sorted according to the sort by fields you selected.

Adds the selected fields in the Fields box to the Sort By box.

Removes the selected fields from the Sort By box.

Moves the selected field up one step. The order of the sort by fields determines the order in which the report data will be sorted.

Moves the selected field down one step.

Filter tab

Defines the filtering conditions. See the tab.

Add Condition

Adds a new condition line.

Delete

Deletes the selected condition line.

Group

Makes the selected conditions in a group. Conditions can also be added to an existing group by selecting the conditions and the group while holding the Ctrl button, and then clicking the Group button.

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.

Field

Specifies the field to be filtered.

Operator

Specifies the operator to compose the filter expression.

Value

Specifies the value of how to filter the field. When you type in the value manually, 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 condtions.

Related topics: