Master/Detail + ClientDataSet

Forum related to Firebird

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
diegocm
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: 22.10.2007, 19:48

Master/Detail + ClientDataSet

Post 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..
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post 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
diegocm
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: 22.10.2007, 19:48

Post 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.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post 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
diegocm
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: 22.10.2007, 19:48

Post by diegocm »

Then I can't use the ClientDataSet for the master/detail relationship?


What do you suggest?
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

You can connect queries in a master/detail relation. I don't know if that's enough for you?

Mark
diegocm
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: 22.10.2007, 19:48

Post by diegocm »

But how will be this relation?? Will can give me a example?


Thanks,

Diego.
gto
Zeos Dev Team
Zeos Dev Team
Posts: 278
Joined: 11.11.2005, 18:35
Location: Porto Alegre / Brasil

Post by gto »

Use the FU!!!!!IN Google !

gto's Zeos Quick Start Guide

Te Amo Taís!
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post 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:
Post Reply