BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dbx + ClientDataSet master-detail - deleted record reappear

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Dennis Ho
Guest





PostPosted: Mon Apr 26, 2004 4:31 am    Post subject: Dbx + ClientDataSet master-detail - deleted record reappear Reply with quote



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





PostPosted: Wed Apr 28, 2004 9:14 am    Post subject: Re: Dbx + ClientDataSet master-detail - deleted record reapp Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.