RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomCachedDataSet.OnUpdateError Event

Occurs when the internal provider can't update a record because of an error condition.

Pascal
property OnUpdateError: TResolverErrorEvent;
C++
__property TResolverErrorEvent OnUpdateError;

Write an OnUpdateError event handler to respond to error conditions that arise when the provider applies a client dataset's updates. The OnUpdateError event handler is called for each record that can't be updated.

Warning: The provider can't detect when an update conflicts with another user's changes to a memo field. This situation will not generate an OnUpdateError event.
OnUpdateError differs from the OnReconcileError event in that OnUpdateError occurs during the updating process, while OnReconcileError occurs after all updating is complete. Thus, update errors corrected in the OnUpdateError event handler are immediately reapplied, and, if the reapplication is successful, do not count toward the maximum number of errors specified to the ApplyUpdates method. This differs from update errors corrected in an OnReconcileError event handler, which must be explicitly reapplied by another call to ApplyUpdates. 

 

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