Board index » delphi » ApplyUpdates problem after delete.
Max
Delphi Developer |
ApplyUpdates problem after delete.2005-06-23 05:48:21 PM delphi184 Hi all, in a master/detail scenario, i delete a record from a detail dataset, then i insert the same record and post the changes with the applyupdates method. The first time that i do this alla works fine; if i do the same thing once again, Interbase send a message of primary key violation. The primary key of the detail dataset have an autoincrement field named ID. If i debug my application, with the "use debug Dcus" parameter checked, i have discovered that this problem appear because the second delete command, afert the first ApplyUpdates, don't have the corret value for the :OLD_ID parameters that is used by the TIBSQL fqdelete component of the tibcustomdataset. There is some solutions to this problem ? I use D5 Sp1 with IBX 5.04. Thanks in advance for the answer. Massimo. |