Getting started with TMS FNC Data Binding
Prerequisites
- TMS FNC Core installed and the runtime package added to the project.
- A
TDataSetdescendant (e.g.TClientDataSet,TTMSFNCDataSet, or any live dataset).
Add the component
- Drop
TTMSFNCDataBinderfrom the TMS FNC DB palette page onto a form or data module. - Set
DataSourceto aTDataSourceconnected 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.