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

# TDataSetPost

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

TDataSetPost posts changes for the current record to the DataSet.

## Declaration

Source position: dbactns.pp line 120

`type TDataSetPost = class(TDataSetAction)`
`public`
`procedure ExecuteTarget(); override;` |  | Retrieves the dataset for the target datasource and calls its Post 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

`TDataSetPost` |  | TDataSetPost posts changes for the current record to the 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`
?
`TObject`

## Description

TDataSetPost posts editing changes for the current record into the DataSet. Some datasets may require additional actions for editing changes to become permanent; i.e. SQL databases use transactions that require a COMMIT statement to be executed before changes are written to the database engine.

## 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.
TDataSetCancel |  | TDataSetCancel cancels the current edit mode for a 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.