TDataSetInsert class
TDataSetInsert inserts (appends) a new record into the
DataSet.Declaration
TDataSetInsert = class(TDataSetAction)Inheritance
- TDataSetInsert
- TDataSetAction
- TAction
- TCustomAction
- TContainedAction
- TBasicAction
- TComponent
- TPersistent
- TObject
Description
TDataSetInsert is a
TDataSetAction descendant which
inserts a new record into the dataset for the target DataSource. The new
record has blank values in each of its fields, and allows editing of the
field values.
Positioning of the inserted record is actually determined using the facilities for the underlying database engine. In most cases, the record is simply appended to its data store and ordered using the indexing facilities for the database engine. Some database engines require an additional step to make the record insertion and/or field editing permanent; i.e. SQL databases require use of a COMMIT statement to flush the changes to the database engine.
TDataSetInsert calls the Insert method for the target dataset to
perform the database action.
See also
- TDataSetFirst
- TDataSetLast
- TDataSetNext
- TDataSetPrior
- TDataSetRefresh
- TDataSetCancel
- TDataSetDelete
- TDataSetEdit
- TDataSetPost
- TDataSetAction
Properties
DataSource | published | DataSource with the dataset for the action. |
Methods
ExecuteTarget | public | Retrieves the dataset for the target datasource and calls its Insert method. |
UpdateTarget | public | Enables or disables the action based on the state of the dataset in the target. |
Inherited
From TDataSetAction (3)
From TAction (18)
AutoCheck Caption Checked Create DisableIfNoHandler Enabled GroupIndex HelpContext HelpKeyword HelpType Hint ImageIndex OnExecute OnHint OnUpdate SecondaryShortCuts ShortCut Visible
From TCustomAction (20)
AssignTo Destroy DoHint Execute Grayed HandleShortCut SavedEnabledState SetAutoCheck SetCaption SetChecked SetEnabled SetGroupIndex SetHelpContext SetHelpKeyword SetHelpType SetHint SetImageIndex SetName SetShortCut SetVisible
From TContainedAction (8)
ActionList Category GetParentComponent HasParent Index ReadState SetParentComponent Update
From TBasicAction (10)
ActionComponent Change ClientCount Clients GetClient OnChange RegisterChanges SetOnExecute Suspended UnRegisterChanges
From TComponent (68)
_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetTypeInfo GetTypeInfoCount iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState
From TPersistent (4)
Assign FPOAttachObserver FPODetachObserver FPONotifyObservers
From TObject (37)
AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
