## Dataset Editor dialog

This dialog appears when you check the Existing radio button, select an existing dataset and click the Modify button in the Data screen of the report wizard. It helps you to edit the selected dataset and consists of the following tabs:

- Data tab
- Filter tab

OK

Applies the changes and closes the dialog.

Cancel

Cancels the changes and exits the dialog.

Help

Displays the help document about this feature.

### Data tab

Adds some extra data fields to the dataset or removes some existing data fields from the dataset. See the tab.

Available Resource

Lists all the available data fields contained in the data source on which the dataset is created.

Dataset

Lists all the fields that are included in the dataset.

Moves the select data field up a step.

Moves the select data field down a step.

Adds the select data field to the dataset.

Removes the select data field from the dataset. Only the fields which are not used by any data component created on the dataset, either directly or indirectly, can be removed.

Removes all the data fields from the dataset. When you click the button, only the unused data fields will be removed actually. When you enter the dialog the next time, you will find that the data fields used by data components created on the dataset will still display in the Dataset box.

### Filter tab

Sets some conditions to filter the data of the dataset. See the tab.

Add Condition

Adds a new condition line.

Delete

Deletes the selected condition line.

Group

Makes the selected conditions in one 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 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
  Logic operator Or which is applied to this and the next line.
- And Not
  Logic operator And Not which is applied to this and the next line.
- Or Not
  Logic operator Or Not which is applied to this and the next line.

Field

Specifies the field to be filtered.

Operator

Specifies the operator to compose the filter expression.

- =
  Equal to
- >
  Greater than
- >=
  Greater than or equal to
- <
  Less than
- <=
  Less than or equal to
- !=
  Not equal to
- [not ]in
  Causes an enumerated list of values which will appear in the WHERE clause predicate to be evaluated for a true condition.

- [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 type in the value manually or click next to the text box to specify the 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 "\\".

When you click to specify the value, the Expressions dialog is displayed. The following are options in the dialog:

- Real Name tab
  Lists the tables added in the query on which the dataset is created with all their columns, also the formulas and parameters in the catalog. Double-click the required field to add it as the value.

  The following symbols at the bottom of the Expressions dialog allow you to modify the expression according to your requirements.

  - +
    Adds numbers or fields together.
  - -
    Subtracts numbers or fields together.
  - *
    Multiplies numbers or fields together.
  - /
    Divides numbers or fields together.
  - =
    Equates fields together.
  - "
    Places quotations on long character strings or name that have blanks in them. For example, you should place quotes on values such as "New York" or "Washington DC".
  - ||
    Places fields together in the same expression. For example, "New York" || "Washington DC".
  - ( )
    Places the fields in parentheses.
- Field Value tab
  Lists all column names of the related table, in which the field to be filtered is. Check the column name of the field to be filtered, click OK, then the values of the field will be displayed. Choose the required value and click Set to use it to filter the field.

SQL Statement

Displays the SQL statement of the filter condition.

###### Related topics:

- Datasets