[Overview][Classes][Procedures and functions][Index] |
Enables or disables the action based on the state of the dataset in the target.
Source position: dbactns.pp line 91
public procedure TDataSetCancel.UpdateTarget( |
Target: TObject |
); override; |
Target |
|
DataSource object examined in the method. |
UpdateTarget is an overridden method which enables or disables the database action based on the state of the dataset in the Target object.
UpdateTarget calls the GetDataSet method to retrieve the dataset in the Target datasource. The action is Enabled when the dataset is active, and the value in its State property is in the dsEditModes set. This ensures that the action cannot be performed for a dataset that has not been opened, or has not been placed in edit mode.
Version 4.0 | Generated 2025-05-03 | Home |