Controlling the Update Process

From InterBase

Go Up to Working with Cached Updates


When a dataset component’s ApplyUpdates method is called, an attempt is made to apply the updates for all records in the update cache to the corresponding records in the base table. As the update for each changed, deleted, or newly inserted record is about to be applied, the dataset component’s OnUpdateRecord event fires.

Providing a handler for the OnUpdateRecord event allows you to perform actions just before the current record’s update is actually applied. Such actions can include special data validation, updating other tables, or executing multiple update objects. A handler for the OnUpdateRecord event affords you greater control over the update process.

The sections that follow describe when you might need to provide a handler for the OnUpdateRecord event and how to create a handler for this event.

Topics

Advance To: