Class FilterCondition

A FilterCondition object contains the properties for a condition in the filter, exclusion filter, or group filter of a report.

System.Object
  Stonefield.Collections.BaseItem
    Stonefield.Query.Filtering.FilterCondition
public class FilterCondition : BaseItem, IFilterCondition

Class Members

MemberDescription

Constructor

Parameterless constructor. The default operator is "equals".

value

The current value to use for an evaluated expression.

_visible

The underlying store for Visible.

GetConditionValue

Gets the specified condition value as a formatted string.

public sealed string GetConditionValue(int index)

ToString

Overrides ToString to return the filter description.

public virtual string ToString()

AskAtRuntime

True if the value for this condition should be set at runtime.

CloseParentheses

The number of closing parentheses to suffix the condition with.

Connection

Specifies how this condition is connected to the previous one.

Description

The description for the condition.

DisplayCondition

True to display the condition in the filter description.

ErrorMessage

The message of any error that occurred when evaluating the description.

EvaluatedDescription

The evaluated description for the condition.

Field

The Stonefield.Query.DataDictionary.IField to filter on.

HasCustomDescription

True if the condition has a custom description.

Ignore

True to ignore this condition.

IgnoreTimeComponent

True to ignore the time component of datetime values.

Not

True if the condition uses the NOT of the operator.

OpenParentheses

The number of opening parentheses to prefix the condition with.

Operator

The Stonefield.Query.Filtering.IOperator for the condition.

SelectedTable

The table the field was selected from (may not be the real table but one of AppearsInTable tables).

Type

The type of comparison for the condition.

Values

A list of the evaluated values for the filter condition.

Visible

True if the condition is visible to the user.

Example

// This example adds a filter condition of City = "Berlin" to a report.
// In this code, selectedReport is an IReport object and app is a
// Stonefield Query Application object.

IFilterCondition condition = selectedReport.FilterConditions
   .New(app.DataDictionary.Fields["Customers.City"]);
if (selectedReport.FilterConditions.Count > 0)
{
   condition.Connection = new AndConnection();
}
condition.Operator = new OperatorEquals();
condition.Values.Add("Berlin");

Requirements

Namespace: Stonefield.Query.Filtering
Assembly: filtering.dll