How to do with Mydac as ClientDataSet Delta?

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
cobbra
Posts: 2
Joined: Thu 21 May 2009 14:39

How to do with Mydac as ClientDataSet Delta?

Post by cobbra » Tue 11 Aug 2009 19:11

I need to save only fields changed in my application on a xml file.

I have a group of registers that, the users sometimes needing change, without access the database, only in local data.

I trying to save a xml file with the fields or registers affecteds.
Have a better user for this operation? Maybe a function for save only changed rows? Changed fields and save a XML file?

Sorry my bad english, thank you the help.

Adriano Hedler - Brasil

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Tue 18 Aug 2009 13:06

There is no such functionality in MyDAC. You can try to use the SaveToXml method and the UpdateRecordTypes property (to filter updated records in the CachedUpdates mode) of TMyQuery.

cobbra
Posts: 2
Joined: Thu 21 May 2009 14:39

Post by cobbra » Tue 25 Aug 2009 21:39

Yes... this is a solution...

I use the SavetoXML and LoadFromXML on Virtual Table, and use CRbathmove for sincronyze... this a best way.

You can save the xml everytime... and after sincronize.

Thank you...

Post Reply