This somehow is a follow-up of a CodeRage DE session of mine from 2019 (in German) showing an alternative approach to connect controls to databases. Meanwhile the technology described in that session has become a part of CmonLib.
There is a whole range of DB controls in Delphi, such as TDBEdit, TDBListBox, TDBCheckBox and a few others, which usually come as special versions of the standard controls of the same name and are characterized by the additional properties DataSource and DataField, which are used to establish the connection to the field of a data source. This connection is then usually bi-directional – the data source represents the field content in the control, but edits within the control are also passed on to the data source. This feature alone has made Delphi one of the most efficient development environments for database applications from the very beginning. Even today, a simple application for editing a database table can be realized in Delphi within a few minutes.
Unfortunately there is a growing number of controls that don’t have a DB counterpart. Even more: DB controls are a VCL-only thing. FMX lacks them completely. (Yeah, I know – Live Bindings, but…)
To the rescue CmonLib recently got a new feature: DataSense Continue reading “CmonLib: DataSense”