Table of Contents

Getting started with TMS FNC Dataset

Prerequisites

  • TMS FNC Core installed and the RTL runtime package added to the project.

Load JSON into a data-aware control

var
  DS: TTMSFNCDataSet;
  Link: TTMSFNCDataLinkJSON;
begin
  DS := TTMSFNCDataSet.Create(nil);
  Link := TTMSFNCDataLinkJSON.Create(nil);
  try
    Link.DataSet := DS;
    Link.JSONString := '[ {"Name":"Alice","Age":30}, {"Name":"Bob","Age":25} ]';
    Link.Load;
    DS.Open;

    // DS is now a live TDataSet — connect via TDataSource as normal
    DataSource1.DataSet := DS;
  finally
    // ownership assumed by form or caller
  end;
end;

Load CSV

DataLinkCSV1.DataSet := DataSet1;
DataLinkCSV1.LoadFromFile('data.csv');
DataSet1.Open;

Drop on a form

  1. Drop TTMSFNCDataSet and TTMSFNCDataLinkJSON from the TMS FNC DB palette page.
  2. Connect TTMSFNCDataLinkJSON.DataSet to TTMSFNCDataSet1.
  3. Add a TDataSource pointing to TTMSFNCDataSet1 and connect data-aware controls.

Next steps

  • Guides — field mapping, sorting, filtering, and the filter builder.
  • API reference — full class reference.