Vcl.DBClientActns.TClientDataSetRevert

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.DBActns.TDataSetActionVcl.ActnList.TActionVcl.ActnList.TCustomActionSystem.Actions.TContainedActionSystem.Classes.TBasicActionSystem.Classes.TComponentSystem.Classes.TPersistentTClientDataSetRevert

Delphi

TClientDataSetRevert = class(TDataSetAction)

C++

class PASCALIMPLEMENTATION TClientDataSetRevert : public Vcl::Dbactns::TDataSetAction

Properties

Type Visibility Source Unit Parent
class public
Vcl.DBClientActns.pas
Vcl.DBClientActns.hpp
Vcl.DBClientActns Vcl.DBClientActns

Description

TClientDataSetRevert causes a target client dataset to back out all changes to the current record.

Add TClientDataSetRevert to an action list or action manager to allow users to undo changes to the current record of a client dataset. Controls such as menu items and tool buttons linked to this action cause the target dataset to back out all edits to the current record.

TClientDataSetRevert is designed to work with a target that is a TDataSource component whose dataset is a TClientDataSet instance. You can explicitly provide this target by setting the DataSource property, or you can allow the action to infer the data source from an active data-aware control. TClientDataSetRevert automatically disables itself if it does not have a target data source attached to an active client dataset.

See Also