RemoveAllFilters - cDRReport¶
Methods - Properties - Events
Method Type¶
Procedure
Arguments¶
| Argument | Description |
|---|---|
sReportID |
ID of the report. Can be ID of the main report or the ID of a sub-report. This argument can be passed as an empty string. The empty string can be written as C_USEMAINDRREPORTID. |
Description¶
Removes all the filters defined by the filter expert or added via AddFilter from the report.
This method cannot be used before the report OCX object is initialized. The COM object creation is - when not done before - created as part of the OpenReport method.
Related topics¶
- AddFilter
- FilterCount
- FiltersDefined
- FindFilterId
- peFilterOperator
- psFilterFunction
- [psFilterField](../both/psfilter-field.md
- [psFilterValue](../both/psfilter-value.md
- RemoveFilter
DataFlex Framework usage¶
- Web
- Windows
- FlexTron
Sample¶
Object oReport is a cDRReport
Set psReportName to 'MyReport.dr'
End_Object
Object oRunReportButton is a Button
Set Label to 'Run Report'
Procedure OnClick
String sReportId
Get OpenReport of oReport to sReportId
If (sReportId <> '') Begin
// Removes all predefined filters, if any
Send RemoveAllFilters Of oReport sReportId
Send OutputReport of oReport
Send CloseReport of oReport sReportId
End
End_Procedure
End_Object
Notes¶
- RemoveAllFilters does not clear a filter defined in the report via filter function or set via psFilterFunction.