DataBkr.TRemoteDataModule.AS ApplyUpdates

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From DataBkr.pas

	function AS_ApplyUpdates(const ProviderName: WideString;
		Delta: OleVariant;
		MaxErrors: Integer;
		out ErrorCount: Integer;
		var OwnerData: OleVariant): OleVariant;


Unit: DataBkr

Type: method

Visibility: protected

Member Of: TRemoteDataModule

C++ Information

From DataBkr.hpp

	long __fastcall AS_ApplyUpdates(System::WideString ProviderName,
		System::OleVariant Delta,
		int MaxErrors,
		int & ErrorCount,
		System::OleVariant & OwnerData,
		System::OleVariant & __AS_ApplyUpdates_result);


Unit: DataBkr

Type: method

Visibility: protected

Member Of: TRemoteDataModule

Description

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


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 rolling back 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. It is passed to the provider's BeforeApplyUpdates event handler and returned from the provider's AfterApplyUpdates event handler.

AS_AS_ApplyUpdates The AS_ApplyUpdates_result parameter returns a Variant that is a data packet containing all the records that could not be applied.

Note:  Applications can only call the protected AS_AS_ApplyUpdates method using the TRemoteDataModule interface. To apply updates directly in code from the application server, use the provider component's AS_ApplyUpdates method.

See Also

Personal tools
Translations
Newest Version