Datasnap.Provider.TBaseProvider.OnUpdateData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnUpdateData: TProviderDataEvent read FOnUpdateData write FOnUpdateData;

C++

__property TProviderDataEvent OnUpdateData = {read=FOnUpdateData, write=FOnUpdateData};

Properties

Type Visibility Source Unit Parent
event public
Datasnap.Provider.pas
Datasnap.Provider.hpp
Datasnap.Provider TBaseProvider

Description

Occurs when a provider begins to apply updates.

Write an OnUpdateData event to handle special processing before the provider begins applying updates received from the client dataset or XML broker. Using the methods belonging to the DataSet parameter, an application can:

  • Examine data (for example, for values or data changes that should not be permitted) and raise exceptions that cancel applying of updates before they occur.
  • Change data (for example encrypting or decrypting values) before it is sent on to the source dataset or database server.

OnUpdateData is an event handler of type Datasnap.Provider.TProviderDataEvent.

See Also