Search Results for

    Show / Hide Table of Contents

    TVirtualDataTable.GetDistinct Method

    Override this method to return a new VirtualDataSet with unique values. Note that the returned dataset will not have all the columns this one has, only the ones defined on "filterFields"

    Remarks

    You do not need to implement this method if you do not want to let users create "Distinct()" filters on the config sheet.

    Syntax

    Unit: FlexCel.Report

    function TVirtualDataTable.GetDistinct(const newDataName: string; const filterFields: TArray<Int32>): TVirtualDataTable; virtual;

    Parameters

    <-> Parameter Type Description
    const newDataName string How this new VirtualDataSet will be named. This is what the user wrote on the config sheet, when creating the distinct dataset. Note that as with all the VirtualDataSets, this name is meaningless except for error messages.
    const filterFields TArray<Int32> Fields where to apply the "distinct" condition.

    Returns

    A new VirtualDataTable with the filtered data and the new name.

    See also

    • TVirtualDataTable
    In This Article
    Back to top FlexCel Studio for VCL and FireMonkey v7.24
    © 2002 - 2025 tmssoftware.com