Board index » delphi » Master/detail-problems with cahched updates
Oivind Muller
![]() Delphi Developer |
Fri, 15 Jan 1999 03:00:00 GMT
Master/detail-problems with cahched updatesHello folks! Im using Delphi 2.0 dev./Local Interbase. I have an app based on queries with chached updates Consider these scenarios: 1) I make some changes to a detail set, then attempt to change the master. As soon as I call edit for 2) The ApplyUpdates method (of TDatabase component) takes as param an array of datasets MyDB.ApplyUpdates([MasterSet, DetailSet]) changes on the detail set is discarded and only the master is updated. To get both sets updated I MyDB.ApplyUpdates([DetailSet]) Which is not preferable because it means two transactions instedad of one. 3) I make changes to a detail, then move the current record position of the master (call Next or Prior As far as I can see any state-changes to a master wipes away detail-updates from the chache. In any Should it work like this? It indeed forces the programmer to impose restrictions on the user, Thanks for any comments! |