Page 1 of 1

Master/Detail + ClientDataSet

Posted: 23.10.2007, 12:10
by diegocm
Hi All,

I have problems with Master/Detail with ClientDateSet. I didn't get to configure the details.

I have to use the property DataSource or MasterSource in the Details???


Someone has a tutorial or a example for me??



Thanks..

Posted: 23.10.2007, 13:44
by mdaems
Hi Diegocm,

I don't know much on this topic, but I know there's a bug in this situation. In case the bug occurs the data in the details block are fetched but appear without data.

Mark

Posted: 23.10.2007, 14:01
by diegocm
Exactly. Case a master register have two details, in DBGrid two lines are show, but the lines are without data.


It's then a bug?? It's not possible to resolve??


Thanks,

Diego.

Posted: 23.10.2007, 15:31
by mdaems
It's a known bug I can't solve. Probably somebody with more clientdataset experience can debug it, but nobody showed up yet... See the bug tracker for more sample programs...

Mark

Posted: 23.10.2007, 16:30
by diegocm
Then I can't use the ClientDataSet for the master/detail relationship?


What do you suggest?

Posted: 23.10.2007, 18:28
by mdaems
You can connect queries in a master/detail relation. I don't know if that's enough for you?

Mark

Posted: 24.10.2007, 19:57
by diegocm
But how will be this relation?? Will can give me a example?


Thanks,

Diego.

Posted: 24.10.2007, 20:08
by gto

Posted: 24.10.2007, 21:09
by mdaems
Please, try this fix. I'm not sure about it, but problem seems fixed for bugs 43 and 59

I think I fixed it...
Please check and confirm...
Index: D:/Data/Delphi/ZEOSTesting/src/component/ZAbstractRODataset.pas
===================================================================
--- D:/Data/Delphi/ZEOSTesting/src/component/ZAbstractRODataset.pas (revision 304)
+++ D:/Data/Delphi/ZEOSTesting/src/component/ZAbstractRODataset.pas (working copy)
@@ -1111,7 +1111,7 @@
begin
RowBuffer := nil;
case State of
- dsBrowse:
+ dsBrowse,dsblockread:
if not IsEmpty then
RowBuffer := PZRowBuffer(ActiveBuffer);
dsEdit, dsInsert: