Board index » delphi » Nested Table Problem

Nested Table Problem


2003-12-04 09:21:45 PM
delphi85
Hi,
I'm having exactly the same problem as the user below....(a very old
post...)
Is there a solution?
Thanks for any help
John
Quote
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Using D6, nested Clientdatasets and ADO.
the provider has update mode set to upWhereKeyOnly.
pfinKey values for each key field in ADOdataset's and CDS's are set to true.
2 Clientdatasets, 1 is a nested (detail) table with the datasetfield field
set, the other is the master. With all options cleared and ResolveToDataset
set to false. When calling CDS1.applyupdates (0); I get the follwing error
"Syntax error in INSERT INTO". I have looked into the QRY it generates and
it appears to be sending something like "insert into tblA (ID,Date) values
(?,?)".
If I then set the ResolveToDataset on the provider to true then it'll quite
happily insert into the master but when it goes to insert a detail record
throws a "cannot preform this operation on a closed dataset" error.
I'm really confused. Anyone got any ideas.
John.
 
 

Re:Nested Table Problem

"John" <XXXX@XXXXX.COM>writes
Quote
Hi,
I'm having exactly the same problem as the user below....(a very old
post...)
Is there a solution?
The master guys would ask what DB engine you use via ADO...
The syntax error is some thing related to the engine.
UpdateMode has nothing to do with inserts.
I strongly suggest that you stick to use SQLResolver and do not try direct
updates via data set, esp in M/D arch.
cheers