RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomCachedDataSet.BeforeUpdateRecord Event

Occurs immediately before each record is applied to the database server.

Pascal
property BeforeUpdateRecord: TBeforeUpdateRecordEvent;
C++
__property TBeforeUpdateRecordEvent BeforeUpdateRecord;

Write a BeforeUpdateRecord event handler to: 

Prepare individual record updates before they are applied to the database server. For example, you can insert additional changes into a record before it is updated or set the ProviderFlags property of the fields in the DeltaDS parameter to indicate how you want to identify the records that are to be updated or changed and which fields should be updated. 

Manually apply updates that the internal provider can't handle. For example, the provider can't generate the appropriate SQL when the data results from a multi-table join and more than one table must be updated. Write code in the event handler to apply the update and then set the Applied parameter to true so that the internal provider does not generate an error. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!