[fpc-devel] About TDataSet master/detail design in fpc

Luiz Américo pascalive at bol.com.br
Fri May 6 18:05:05 CEST 2005

Michael Van Canneyt wrote:
> On Fri, 6 May 2005, Luiz Américo wrote:
>> I noticed that in the current cvs of fpc it's implemented the 
>> master/detail relation between TDataset(s).
>> I saw that TDetailDataLink and TMasterDataLink was introduced but I 
>> couldn't figure how is supposed to work. I also noticed the abscense 
>> of NestedDatasets and DataSetField properties.
> They are not yet implemented. 

  So none of the current TDataset descendants works with Master/Detail 
schema ?
If some works, can anybody send me a example?

> But NestedDataset and DatasetField are
> ONLY for TClientDataset, and we don't support TClientDataset (yet).

At least TDataset class in Delphi 7 has both properties.

> What you must do is
> 1. Implement parameter support (TParams/TParam is present).
> 2. Introduce a Datasource property. Whenever the Datasource changes it's
>    data, the detail dataset most close, fill in new parameters, and
>    reopen.
> 2 is not a problem, this is max 50 lines of code. 1 is the problem.

I'll take a look.


More information about the fpc-devel mailing list