 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Dennis Ho Guest
|
Posted: Mon Apr 26, 2004 4:31 am Post subject: Dbx + ClientDataSet master-detail - deleted record reappear |
|
|
Scenerio:
1. SQLDataSet1 -> DataSetProvider -> ClientDataSet1 -> DataSource1
2. SQLDataSet2 -> DataSetProvider -> ClientDataSet2 -> DataSource2
3. ClientDataSet2.MasterSource := DataSource1
ClientDataSet2.MasterField := MastetKey1
4. ClientDataSet1 have 3 records.
5. For each record of ClientDataSet1 (master), there are 3 records in
ClientDataSet2 (details).
Problem:
1. Position first record in ClientDataSet1 (master).
2. Delete all records from ClientDataSet2 (detail).
3. In ClientDataSet1 (master), go to the next record and then go back to the
first record.
4. The deleted records from ClientDataSet2 (detail) reappear ?????
5. The problem will only occurs when all detail records are deleted, if
there are one or more record still in detail dataset, the problem will not
exists.
Please help me on how to fix the problem.
Thanks.
|
|
| Back to top |
|
 |
Dave Rowntree Guest
|
Posted: Wed Apr 28, 2004 9:14 am Post subject: Re: Dbx + ClientDataSet master-detail - deleted record reapp |
|
|
The CDS and DSP are part of MIDAS(datasnap), not dbexpress, and
questions relating to them would be better placed in b.p.datasnap :)
This is a known problem, have a look at QC#4691 http://qc.borland.com/
The MIDAS prefered master detail method is to use nested datasets
instead of client side M/Ds.
--
Dave Rowntree
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|