How does Coruscant get food? Did you try to change AutoGenerateValue in "ID" field to arAutoInc or arDefault? whit this datatype I don't have this problem anymore... Join Now For immediate help use Live now!
Both connections are ADO, tables and queries are handled similar. if you see in the documentation, clientDataSet tryes to preserv the "Data Atomicy", the idea is that you send several changes to the database, but, if one of them falls no If we have two functions that have composition differentiable does it mean both are differentiable? are you trying to update views or actual tables.
for these, I now the error is not in my project, it is in my database... Do you use TProvider component? Why does Windows show "This device can perform faster" notification if I connect it clumsily?
Thanks Juna juna View Public Profile Send a private message to juna Visit juna's homepage! when you have that error is because your ClientDataSet has the reference of the value of ALL records when you open the ClientDataSet, so when you do changes and call ApplyUpdates, Is 8:00 AM an unreasonable time to meet with my graduate students and post-doc? I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that â€¦ MS
So what should I do to indentify my problem and know why the ApplyUpdates does not execute. I guess it's something really simple but I struggle on it for a while now. Forgot to mention, try to use the passed parameter DataSet which should contain the record that couldn't be updated; it might be the way to determine what record caused the problem. Find all posts by juna #8 08-06-2007, 06:13 AM FreddyB Senior Member Join Date: Jul 2003 Location: Bogotá - Colombia Posts: 488 RE: ClientDataset: Must apply updates before
It seems that the update sql-query is flawed. The server will not detect and return these conflicts as errors. When I press button1, a record is created and after the call to applyUpdates its written to the databse. If Cds.FileName='' then Close-Open will fetch data from server, but it will not keep the current record (Refresh tries to do that instead) 3) Use code like the following: i:=Cds.ApplyUpdates(0); If
By the way I have 6 days to prep Estimating error of linear approximation Modern soldiers carry axes instead of combat knives. Why? I need to finish these, my boss is kill me..:-) Thanks for All... When you apply updates, then clientdataset will pass this delta to the provider which will generate the update query and update the database.
If Cds.FileName='' then Close-Open will fetch data from server, but it will not keep the current record (Refresh tries to do that instead) 3) Use code like the following: i:=Cds.ApplyUpdates(0); If All rights reserved. Thanks for all Kosta, and thanks for your patience, s Fellipe H. "Kostas Terzides"
If it were commiting detail lines independantly of the transaction, then there is no point in having any transaction, and just handle the prospect of orphans (ie headers with no lines,
for example, the error can be there for error with the primary key, or the data for a foreign key doesnot exists, or some another kind of error should be there.... How many miles should I ride each day to prep for the ride? Most likely, if tables, the commitUpdates is required. 0 Message Author Comment by:blarke2008-04-24 Everyone, thanks. Was Donald Trump's father a member of the KKK?
reynaldio: on ReconcileError, I get this error, which seems to be my problem: " An expression of non-boolean type specified in a context where a condition is expected, near 'ID' " So, could you give some feedback how is it going after you test it, please ? Thanks for all, Fellipe H. if not set it to true in your adoquery.
Covered by US Patent. So I would try the following code, raSkip means here to skip the current record: procedure TForm1.ClientDataSet1ReconcileError(DataSet: TCustomClientDataSet; E: EReconcileError; UpdateKind: TUpdateKind; var Action: TReconcileAction); begin Action := raSkip; ShowMessage('The record Looking forward to your reply. Is any necessary and sufficient criteria for a topological space to be compact using continuous functions?
You should also (if not already doing so) set a valid value in OnNewRecord for ID_PRODUTO field Kostas Terzides Delphi Developer 2005-05-11 06:36:46 AM Re:help to use ClientDataSet, problem with Job opportunity for Delphi Programmer ( Beijing, China )2. And SQL monitor, I found it, and have opened it, but how to use it? end; procedure TForm1.Button2Click(Sender: TObject); begin ClientDataSet1.edit; ClientDataSet1.FieldByName('anruf_bis').AsDateTime := time; ClientDataSet1.Post; showmessage(intToStr(ClientDataSet1.ChangeCount)); // returns 1 if ClientDataSet1.ChangeCount > 0 then ClientDataSet1.applyUpdates(0); end; The code is self explaining I think.
Join the community of 500,000 technology professionals and ask your questions. No luck. Often the case with master / details where the commit occurs after the detail lines have been added. Thank you juna View Public Profile Send a private message to juna Visit juna's homepage!
Unwanted Sorting in DbGrid - after record add4. Find all posts by juna #7 08-05-2007, 11:48 PM juna Junior Member Join Date: Nov 2006 Posts: 7 RE: ClientDataset: Must apply updates before refreshing data Can you Find all posts by juna #6 08-02-2007, 04:42 AM juna Junior Member Join Date: Nov 2006 Posts: 7 RE: ClientDataset: Must apply updates before refreshing data i found