Page 1 of 1

Error in Master-Detail

Posted: Mon 02 Mar 2009 20:45
by Alisson
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?

Posted: Wed 04 Mar 2009 08:39
by Plash
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?

Posted: Wed 08 Apr 2009 13:43
by Alisson
-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.

Posted: Mon 20 Jul 2009 00:20
by eduardosic
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

Posted: Mon 20 Jul 2009 00:20
by eduardosic
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