FilterCount - cDRReport¶
Methods - Properties - Events
Method Type¶
Function
Return Type¶
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¶
Returns the number of filters defined in the report. The filters must have been defined by either the filter expert in the designer or added via AddFilter. Information about each of the filters can be retrieved via the properties psFilterField, peFilterOperator, and psFilterValue.
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
- FiltersDefined
- FindFilterId
- peFilterOperator
- psFilterFunction
- psFilterField
- psFilterValue
- RemoveAllFilters
- RemoveFilter
DataFlex Framework usage¶
- Web
- Windows
- FlexTron
Sample¶
Object oReport is a cDRReport
Set psReportName to 'MyReport.dr'
End_Object
Object oShowFilterCountButton is a Button
Set Label to 'Count number of filters'
Procedure OnClick
String sReportId
Integer iCount
Get OpenReport of oReport to sReportId
If (sReportId <> '') Begin
Get FilterCount of oReport sReportId to iCount
Send Info_Box iCount 'Number of filters defined'
Send CloseReport of oReport sReportId
End
End_Procedure
End_Object