Updating a Read-only Dataset
From InterBase
Go Up to Working with Cached Updates
To manually update a read-only dataset:
- Add a
TIBUpdateSQLcomponent to the data module in your application. - Set the dataset component’s
UpdateObjectproperty to the name of theTIBUpdateSQLcomponent in the data module. - Enter the SQL update statement for the result set to the update component’s
ModifySQL,InsertSQL,DeleteSQL, orRefreshSQLproperties, or use the Update SQL editor. - Close the dataset.
- Set the dataset component’s
CachedUpdatesproperty toTrue. - Reopen the dataset.
In many circumstances, you may also want to write an OnUpdateRecord event handler for the dataset.