Error in Master-Detail

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Alisson
Posts: 7
Joined: Mon 08 Dec 2008 16:32
Contact:

Error in Master-Detail

Post by Alisson » Mon 02 Mar 2009 20:45

I have a error using a master-detail with UniQuery/DatasetProvider/ClientDataset. When there is a exception in detail, my program don´t cancel the transaction and the master is saved. It´s necessary any configuration in DatasetProvider?

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Wed 04 Mar 2009 08:39

Please provide the following information:

Which provider are you using?
Whether an exception occurs when you you call the ApplyUpdates method for the detail TClientDataSet?
When do you call ApplyUpdates for the master dataset?
Do you start a transaction manually?

Alisson
Posts: 7
Joined: Mon 08 Dec 2008 16:32
Contact:

Post by Alisson » Wed 08 Apr 2009 13:43

-The provider is InterbaseUniProvider.

-I don't call ApplyUpdates for detail ClientDataset. In Master-detail mode is enough to call ApplyUpdates to Master ClientDataset.

-I call ApplyUpdates for the master dataset after call Post Method.

-I don't start a transaction manually. The DatasetProvider controls the transaction.

eduardosic
Posts: 387
Joined: Fri 18 Nov 2005 00:26
Location: Brazil

Post by eduardosic » Mon 20 Jul 2009 00:20

Alisson wrote:-The provider is InterbaseUniProvider.

-I don't call ApplyUpdates for detail ClientDataset. In Master-detail mode is enough to call ApplyUpdates to Master ClientDataset.

-I call ApplyUpdates for the master dataset after call Post Method.

-I don't start a transaction manually. The DatasetProvider controls the transaction.
Please, view the Devart solution in the post
http://www.devart.com/forums/viewtopic.php?t=15332

eduardosic
Posts: 387
Joined: Fri 18 Nov 2005 00:26
Location: Brazil

Post by eduardosic » Mon 20 Jul 2009 00:20

Alisson wrote:-The provider is InterbaseUniProvider.

-I don't call ApplyUpdates for detail ClientDataset. In Master-detail mode is enough to call ApplyUpdates to Master ClientDataset.

-I call ApplyUpdates for the master dataset after call Post Method.

-I don't start a transaction manually. The DatasetProvider controls the transaction.
Please, view the Devart solution in the post
http://www.devart.com/forums/viewtopic.php?t=15332

Post Reply