Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to allow users to create filter via the criteria editor before previewing a report

$
0
0

This example demonstrates how to display a popup window with the filter editor before showing report preview, and filtering the report using the filter specified in this window. For this purpose, a custom report parameters class - CriteriaReportParametersObject - is created. This class has the Criteria property decorated with the CriteriaOptionsAttribute. XAF automatically uses CriteriaPropertyEditor for properties decorated with this attribute. So, the CriteriaPropertyEditor will be displayed in the CriteriaReportParametersObject DetailView. To convert the string created by this editor to the CriteriaOperator appropriate for the report, use the CriteriaEditorHelper.GetCriteriaOperator method in the CriteriaReportParametersObject.GetCriteria. The following topics contain more information about these techniques:

How to: Use Criteria Property Editors
Filter Report Data Source via the ParametersObjectType Property

Question Comments

Added By: Gustavo Marzioni at: 10/5/2012 8:36:49 AM    

No version for 12.1?

Added By: Paolo Parente at: 1/23/2013 10:15:26 AM    

Is there the 12.2 version?

Added By: Anatol (DevExpress Support) at: 4/3/2013 3:49:26 AM    

I have published versions for 12.1 and 12.2. Since the ASP.NET version does not require any specific code, I have removed Web projects from the example to simplify the maintenance.

Added By: Quynh Thai Doan at: 7/23/2013 1:13:53 AM    

How to popup Criteria Editor Window in winApplication ListView?

Added By: Anatol (DevExpress Support) at: 7/29/2013 7:45:44 AM    

It appears that your question is not directly related to this example. Please create a new ticket for it and describe your task in greater detail.

Added By: Mobilise IT at: 8/4/2015 8:49:19 PM    

Hi,
I was looking for this function with ReportV2, is there any sample I can use?

Added By: Alexey (DevExpress Support) at: 8/4/2015 11:17:50 PM    Hello,
You can find a small sample project in the Using FilterString Editor to create Criteria for ReportsV2 thread.

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>