Ga naar inhoud

TP2WDataElementMapper

TP2WDataElementMapper turns any HTML element into a database-aware control.

Properties

property description
DataSet any TDataSet-descendant component
Links one or more TDataElementLinks

Methods

method description
Refresh forces all the HTML elements to query the database and update themselves. there is probably never a good reason to call Refresh because TP2WDataElementMapper is designed to update the HTML elements automatically, but it is there should you ever need it.
property description
DataField dataset field name for this link
ID ID (or name) of the HTML element to hook up your database with
Enabled True if this link is active, otherwise False
Options please see: TDataElementLinkOptions
event description
OnValidate fired when a HTML element is about to update the database. from here, you can modify the string value or prevent the update from happening altogether.

TDataElementLinkOptions

option description
deReadOnly determines if the link works both ways (from HTML element to database and vice versa), or if the HTML element cannot update the database.
deRequired determines if the HTML element cannot be empty in order to update the database, or if empty strings are allowed.