[Overview][Classes][Procedures and functions][Index] Reference for unit 'DBActns' (#lcl)

TDataSetCancel

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TDataSetCancel cancels the current edit mode for a DataSet.

Declaration

Source position: dbactns.pp line 88

type TDataSetCancel = class(TDataSetAction)

public

  procedure ExecuteTarget(); override;

  

Retrieves the dataset for the target datasource and calls its Cancel method.

  procedure UpdateTarget(); override;

  

Enables or disables the action based on the state of the dataset in the target.

published

  property DataSource: TDataSource;

  

DataSource with the dataset for the action.

end;

Inheritance

TDataSetCancel

  

TDataSetCancel cancels the current edit mode for a DataSet.

|

TDataSetAction

  

TDataSetAction is the base class for all other standard TDataSet actions.

|

TAction

  

TAction is the basic action object used in the LCL.

|

TCustomAction

  

TCustomAction is the ancestor class for TAction.

|

TContainedAction

  

Implements an Action class which has a category and parent action list.

|

TBasicAction

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent,IFPObserved

|

TObject

Description

TDataSetCancel is a TDataSetAction descendant which cancels the current edit mode for a dataset record in its DataSource. This includes restoring the values in records to their pre-editing content, updating the record display, and removing any edit mode(s) assigned to the State property in the dataset. TDataSetCancel can be added to an action list and assigned to controls which perform the corresponding action.

TDataSetCancel publishes the DataSource property which explicitly declares the target for the database action. The DataSource may be determined by examining a data-aware control which used the database action, and passed an an argument to the UpdateTarget and HandlesTarget methods.

See also

TDataSetFirst

  

TDataSetFirst moves to first record in the DataSet.

TDataSetLast

  

TDataSetLast moves to last record in the DataSet.

TDataSetNext

  

TDataSetNext moves to next record in the DataSet.

TDataSetPrior

  

TDataSetPrior moves to previous record in the DataSet.

TDataSetRefresh

  

TDataSetRefresh refreshes the DataSet.

TDataSetDelete

  

TDataSetDelete deletes the current record in the DataSet.

TDataSetEdit

  

TDataSetEdit edits the current record in the DataSet.

TDataSetInsert

  

TDataSetInsert inserts (appends) a new record into the DataSet.

TDataSetPost

  

TDataSetPost posts changes for the current record to the DataSet.

TDataSetAction

  

TDataSetAction is the base class for all other standard TDataSet actions.


Version 3.2 Generated 2024-02-25 Home