TastaClientSocket.SendMasterDetailAutoIncTransaction
Applies to
TAstaClientSocket
Declaration
Function SendMasterDetailAutoIncTransaction(Const DataSets:Array of TDataSet):String
Description
This method allows for
Master/Detail transactions to be executed where the MasterDataSet uses
an AutoIncrement
field that is tagged to be refetched and the DetailDataSet will use this value as well. This means that
in one server round trip a MasterDataset can insert a row, and the AutoIncrement value created on the
server will be used by the DetailDataSet.
There are some limitations:
1. EditMode must be set to Cached.
2. The MasterDataset can only handle the one row: the newly inserted row and it must be setup to have an AutoIncrement Field defined and tagged to be refetched.
3. No refetches are handled by the Detail since a new detail query will be fired by the server post anyhow.