Search code examples
delphidelphi-2006

Disable Change_Log in XML file while saving through ClientDataSet


This was continuation to my previous question.

I dont want PARAMS CHANGE_LOG data in my XML file while saving the data in ClientDataSet using ClientDataSet1.SaveToFile() method.

My code looks like this:

ClientDataSet1.Insert;
ClientDataSet1.FieldByName('Name').AsString:= 'AAA';
ClientDataSet1.Append;
ClientDataSet1.SaveToFile('c:\Test.xml',dfxml);

How can i achieve this.


Solution

  • Set the LogChanges property of your CLientDAtaSet to False, and it will not bulid the ChangeLog for you...