TTMSFNCDataBinder.Connect Method
Creates a binding item using explicit parameters; a convenience alternative to configuring an TTMSFNCDataBinderItem manually.
API unit family: TMSFNCDataBinding
Declaring type: TTMSFNCDataBinder
Syntax
function Connect(AObject: TObject; ADataSource: TDataSource; APropertyName: string; AFieldName: string = ''; AHTMLTemplate: string = ''; ASubPropertyNames: TTMSFNCDataBinderStringArray = nil; ASubFieldNames: TTMSFNCDataBinderStringArray = nil; ASubHTMLTemplates: TTMSFNCDataBinderStringArray = nil; ABindType: TTMSFNCDataBinderBindType = dbbtSingleValue): TTMSFNCDataBinderItem;
Parameters
| Name | Description |
|---|---|
AObject |
Component to bind. |
ADataSource |
Data source supplying the dataset. |
APropertyName |
Name of the component property to bind. |
AFieldName |
Dataset field name for single-value binding. |
AHTMLTemplate |
HTML template for template-based binding. |
ASubPropertyNames |
Sub-property names for list binding. |
ASubFieldNames |
Sub-field names for list binding. |
ASubHTMLTemplates |
Sub-templates for list HTML template binding. |
ABindType |
Binding type controlling how dataset records are mapped. Default is dbbtSingleValue. |
Returns
The new binding item added to the Items collection.