Search Results for

    Show / Hide Table of Contents

    TVirtualDataTableState.MoveMasterRecord Method

    This method will be called each time that the master datasource moves its position. Use it to filter the data returned if this is used on a master-detail relationship.

    Remarks

    You do not need to implement this method if you are not using Master-Detail or Split relationships.

    Syntax

    Unit: FlexCel.Report

    procedure TVirtualDataTableState.MoveMasterRecord(const masterDetailLinks: TArray<TMasterDetailLink>; const splitLink: TSplitLink); virtual;

    Parameters

    <-> Parameter Type Description
    const masterDetailLinks TArray<​TMaster​Detail​Link> List of all the master tables that are related to this one.
    If there are no parents on this VirtualDataTableState, this will be an empty array, not null.
    Use it on GetValue(Integer) to filter the data and then return only the records that satisfy the master-detail relationships on GetValue(Integer)
    const splitLink TSplitLink Parent Split table if this dataset is on a Split relationship, or null if there is none.
    Use it to know how many records you should retun on RowCount. Note that a table might be on Master-Detail relationship *and* split relationship. In this case you need to first filter the records that are on the master detail relationship, and then apply the split to them.

    See also

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