Table of Contents

Getting started with TMS FNC Data Binding

Prerequisites

  • TMS FNC Core installed and the runtime package added to the project.
  • A TDataSet descendant (e.g. TClientDataSet, TTMSFNCDataSet, or any live dataset).

Add the component

  1. Drop TTMSFNCDataBinder from the TMS FNC DB palette page onto a form or data module.
  2. Set DataSource to a TDataSource connected to your dataset.

Add a binding

var
  Item: TTMSFNCDataBinderItem;
begin
  Item := DataBinder1.Items.Add;
  Item.Component := Edit1;
  Item.ComponentProperty := 'Text';
  Item.FieldName := 'CustomerName';
end;

Or configure at design time via the Items collection editor.

Activate binding

DataBinder1.Active := True;

The binder now mirrors field changes to Edit1.Text and writes edits back to the dataset on post.

Next steps

  • Guides — binding modes, HTML templates, transformation, validation, and notifications.
  • API reference — full class reference.