Example 5. Simple filter

Top  Previous  Next

Let us look at the following report, which prints a products list:

 

dialogExample5_1

 

We will show in this example how to filter a products list according to the first letter of the product's name. During this, we will not use automatic data filtering facilities. For this, add a new dialog into the report and place two controls onto it - LabelControl and TextBoxControl:

dialogExample5_2

 

Now open the "Data" band editor and indicate the following filter expression:

 

dialogExample5_3

 

Run the report and make sure that everything works:

 

dialogExample5_5