RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IAppServer.AS_ApplyUpdates Method

Applies updates received from a client dataset using a specified provider.

Pascal
function AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; safecall;
C++
__fastcall OleVariant AS_ApplyUpdates(const BSTR ProviderName, OleVariant Delta, int MaxErrors, int ErrorCount, OleVariant OwnerData);

AS_AS_ApplyUpdates writes client updates to a dataset or database server.  

ProviderName specifies the name of the provider component that manages the update operation.  

Delta is a Variant containing the updated, inserted, and deleted records to write to the database.  

MaxErrors indicates the maximum number of errors to permit before stopping the update operation. 

ErrorCount returns the actual number of errors encountered during the update operation.  

OwnerData is information supplied by the client application in a BeforeAS_ApplyUpdates event handler and returned to the client application in an AfterAS_ApplyUpdates event handler. 

AS_AS_ApplyUpdates (Delphi) or AS_ApplyUpdates_result parameter (C++) returns a Variant that is a data packet containing all records that could not be applied to the database. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!