ReportFilter Class
Contains information about a report filter, including column, operator, and value.
The following are constructors for ReportFilter.
-
Creates a new instance of the
Reports.ReportFilterclass. You can then set values by using the “set” methods. -
ReportFilter(column, operator, value)
Creates a new instance of the
Reports.ReportFilterclass by using the specified parameters. -
ReportFilter(column, operator, value, filterType)
Creates a new instance of the
Reports.ReportFilterclass by using the specified parameters. -
ReportFilter(column, operator, value, filterType, entityName)
Creates a new instance of the
Reports.ReportFilterclass by using the specified parameters.
Creates a new instance of the Reports.ReportFilter class. You can then set values by using the “set” methods.
public ReportFilter()
Creates a new instance of the Reports.ReportFilter class by using the specified parameters.
public ReportFilter(String column, String operator, String value)
Creates a new instance of the Reports.ReportFilter class by using the specified parameters.
public ReportFilterType(String column, String operator, String value, Reports.ReportFilterType filterType)
-
column:
Type: String
-
operator:
Type: String
-
value:
Type: String
-
filterType:
Type: ReportFilterType Enum
Creates a new instance of the Reports.ReportFilter class by using the specified parameters.
public ReportFilterType(String column, String operator, String value, Reports.ReportFilterType filterType, String entityName)
-
column:
Type: String
-
operator:
Type: String
-
value:
Type: String
-
filterType:
Type: ReportFilterType Enum
-
entityName:
Type: String
The following are methods for ReportFilter. All are instance methods.
-
Returns the unique API name for the field that’s being filtered.
-
Returns the entity name used in the report filter. Use the entity name to handle ambiguous field names across entities, specifically when using cross filters.
-
Returns the type of report filter.
-
Returns the unique API name for the condition that is used to filter a field, such as “greater than” or “not equal to.” Filter conditions depend on the data type of the field.
-
Returns the value that the field is being filtered by. For example, the field
Agecan be filtered by a numeric value. -
Sets the unique API name for the field that’s being filtered.
-
Sets the entity name to use in the report filter. Use the entity name to handle ambiguous field names across entities, specifically when using cross filters.
-
Sets the type of report filter.
-
Sets the unique API name for the condition that is used to filter a field, such as “greater than” or “not equal to.” Filter conditions depend on the data type of the field.
-
Sets the value by which a field can be filtered. For example, the field
Agecan be filtered by a numeric value. -
Returns a string representation of the filter.
Returns the unique API name for the field that’s being filtered.
public String getColumn()
Type: String
Returns the entity name used in the report filter. Use the entity name to handle ambiguous field names across entities, specifically when using cross filters.
public String getEntityName()
Type: String
Returns the type of report filter.
public String getFilterType()
Type: ReportFilterType Enum
Returns the unique API name for the condition that is used to filter a field, such as “greater than” or “not equal to.” Filter conditions depend on the data type of the field.
public String getOperator()
Type: String
Returns the value that the field is being filtered by. For example, the field Age can be filtered by a numeric value.
public String getValue()
Type: String
Sets the unique API name for the field that’s being filtered.
public Void setColumn(String column)
-
column:
Type: String
Type: Void
Sets the entity name to use in the report filter. Use the entity name to handle ambiguous field names across entities, specifically when using cross filters.
public Void setEntityName(String entityName)
-
operator:
Type: String
Type: Void
Sets the type of report filter.
public Void setFilterType(String column)
-
column:
Type: String
Type: Void
Sets the unique API name for the condition that is used to filter a field, such as “greater than” or “not equal to.” Filter conditions depend on the data type of the field.
public Void setOperator(String operator)
-
operator:
Type: String
Type: Void
Sets the value by which a field can be filtered. For example, the field Age can be filtered by a numeric value.
public Void setValue(String value)
-
value:
Type: String
Type: Void
Returns a string representation of the filter.
public String toString()
Type: String