Query Filters & Filter Conditions


Advertisements


Following are the types of query filters that can be used in Crystal Reports −

  • Predefined filters
  • Custom Filters
  • Prompts

Predefine Filters

These are inbuilt filters in query panel created by the administrator. Predefined filters are created at the Universe level and are directly used in the report from the Universe. Drag an object on which you want to apply filter to query filter pane and drag predefined filters too. When you run the query data w.r.t query filter will be returned in the report.

Custom Filters

These filters are created with the queries in the query panel. Custom filters are created in the Query panel under the query filter tab. Drag the object to the query filter pane and make use of various relational operator to pass the filter condition. You can put a constant value or a list of values in the query filter.

Prompts

They are used to display a question or list of values and are known as dynamic filters.

Filter Condition

Constant option allows you to enter a single value in filter.

List of values allow you to choose one value from all the available values for an object.

Prompt is used to pass dynamic value to a query filter.

Sr.No. Option & Description
1

Constant

Type a value into the text box

2

LOV

In the Prompt(s) dialog box, add members to your list by double-clicking them, or by selecting them in the Members pane and clicking the arrow in the center

Click ok

3

Prompt

In the Edit Prompt dialog box, select New Prompt to add a new prompt, or Use Universe Parameters to select a parameter from your universe

If you selected a New Prompt, enter prompt options, or if you selected Use Universe Parameters, select a parameter

Click ok

Query Filter Condition

Advertisements