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 AMIs there the 12.2 version?
Added By: Anatol (DevExpress Support) at: 4/3/2013 3:49:26 AMI 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 AMHow to popup Criteria Editor Window in winApplication ListView?
Added By: Anatol (DevExpress Support) at: 7/29/2013 7:45:44 AMIt 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 PMHi,
I was looking for this function with ReportV2, is there any sample I can use?
You can find a small sample project in the Using FilterString Editor to create Criteria for ReportsV2 thread.