• Creates a filter

    Parameters

    • column: string

      The name of a column that is available in the associated query.

    • value: any

      Value(s) to be filtered upon.

    • Optionaltype: IFilterType

      Filter type for the filter. Defaults to LABKEY.Filter.Types.EQUAL.

    Returns IFilter

    A filter instance.

    // Create a request with the data filtered
    LABKEY.Query.selectRows({
    schemaName: 'lists',
    queryName: 'People',
    filterArray: [
    LABKEY.Filter.create('FirstName', 'Johnny'),
    LABKEY.Filter.create('Age', 15, LABKEY.Filter.Types.LESS_THAN_OR_EQUAL)
    LABKEY.Filter.create('LastName', ['A', 'B'], LABKEY.Filter.Types.DOES_NOT_START_WITH),
    ]
    success: function (data) {
    console.log("Success! " + data.rowCount + " rows returned.");
    },
    failure: function (errorInfo, options, responseObj) {
    console.error("Failed to query 'lists.People'.", errorInfo);
    },
    });