The set of below described component and routines is did not be included in Ehlib
package, because it did not complete for final release.
Using components and routines take into account, that in the next versions
of the library it can be powerfully changed, move over to EhLib package or
completely removed from the library.
I am wait for your comments and suggestion about components and routines
from this package.
-- MemTableEh component --
TMemTableEh - dataset, which hold all its data in memory.
Furthermore:
Support special interface, that allow DBGridEh to view all data, without
changing active record.
Allows fetch data from other datasets (using ProviderDataSet property).
Allows to unload changes back to dataset, operative or postponed
(using CachedUpdates property).
Allows to create master/detail relations on client (via filtering records)
or on ProviderDataSet (via updating parameters [Params] and reopen
ProviderDataSet).
Allows (without the dynamic tracking) to sort datas, including
Calculated and Lookup field.
Allows to create and fill data at design-time and save data to dfm form file.
Support filtering (property Filter) and aggregated fields.
Description:
TMemTableEh support special interface, that allow DBGridEh to view all data,
without changing active record (ScrollView mode).
Current version of DBGridEh already can use this interface with some restrictions.
In the current version DBGridEh does not show Footer when use ScrollView mode.
TMemTableEh allows fetch data from other datasets.
It has a ProviderDataSet property of TDataSet type. When ProviderDataSet is
assigned then TMemTableEh will automatically open and close ProviderDataSet when you
open and close TMemTableEh.
FetchAllOnOpen property determine is TMemTableEh will fetch all record immediately
at the opening, or will fetch as required.
When MemTable update changed record to ProviderDataSet. It use KeyFields property
to find record in ProviderDataSet for updating.
TMemTableEh allows to create a master/detail relations on the client (by filtering
records) or on ProviderDataSet (by updating parameters (Params) and reopen
ProviderDataSet).
To set TMemTableEh in the mode detail, use next properties:
MasterSource, MasterFields, KeyFields, MasterDetailSide.
When MasterDetailSide is mdsOnSelfEh, TMemTableEh will filter records using
fields from DetailFields proeprty and basing on values from MasterSource[MasterFields].
When MasterDetailSide is mdsOnProviderEh, TMemTableEh will reassign parameters, take
values from MasterSource and reopen itself.
On open MemTable pass parameters to ProviderDataSet usning PSSetPatrams function.
In mdsOnProviderEh mode DetailFields and MasterFields properties are not used.
- 1
- 2
前往页