TIB_DataLink Object
Properties Methods Events

Unit
IB_Components

Declaration
TIB_DataLink = class(TIB_Component)

Description
This component is used to make another component or control data aware.

It is the base class of many specialized links tailored to suit more specific needs.

It is typically used as a contained or owned object that gives a clean interface to interact with the data. See the IB_Controls and IB_Grid units to see how it is implemented.

Introduced Public Properties
Active  Active status of the dataset or false if none.
ActiveRecord  VCL compatibility property.
AdvSearchData  This is simply a storage area for a control to hold its own search information, in its own format.
AdvSearchDisplay  Return the internal AdvSearchDisplay value if defined (using SetAdvSearchDisplay), otherwise it simply returns the SearchBuffer.
AdvSearchWhere  This property allows certain controls to define an explicity where subclause directly, without the value being parsed by the normal search buffer processing.
Bof 
BoundToBuffer 
BufferActive 
BufferCount  VCL compatibility property.
BufferHasEof 
BufferRecord  This is simply the BufferRowNum.
BufferRowCount  Number of rows in the dataset buffer.
CanModify  General datalink property.
Color  If using the ColorScheme then this has the appropriate color as defined in the IB_Session.
ColorScheme  Returns whether the dataset is using the colorscheme or not.
DataChanging 
DataChangingLevel 
Dataset  Dataset to which this datalink is bound or nil if none.
DataSource  DataSource to which this datalink is bound or nil if none.
DataUpdating 
Disabled  Returns whether the referenced DataSource is disabled or not.
Editing  Same as NeedToPost.
Eof 
IgnoreColorScheme 
InvalidColor 
KeySource  The KeySource of the referenced dataset or nil if none.
MasterSource  The MasterSource of the referenced dataset or nil if none.
NeedToPost  Returns if the dataset is in a state that needs to be posted or cancelled.
Prepared  Returns the Prepared status of the dataset or false if none.
PreventDeleting  General datalink property.
PreventEditing  General datalink property.
PreventInserting  General datalink property.
PreventSearching  General datalink property.
ReadOnly  General datalink property.
ReceiveFocus  Determins whether or not the announcements of focusing datasources should be received by this component.
RecordCount  Tells the number of records in the entire dataset if it were to be completely fecthed.
RowState  Dataset property extender.
SearchAlways  This property can make the control act as though it were always in search mode.
SearchBuffer  Access to the SearchBuffer used in dssSearch state.
SessionCursorIsLocked  Tells the status of the session cursor whether it is locked or not.
State  State of the referenced Dataset or dssInactive if none.
UpdatingRecord  Property tells if the datalink is currently updating from its controls.

Introduced Public Methods
ActiveChanged   Method to denot that the Active status of the data link has been changed.
Append   Used to insert a record at the last position in the dataset.
Create
DataChange
DatasetChanged   Method to indicate when the dataset property has been changed.
Destroy
Edit   Attempt to go into dssEdit state and return the result without raising an exception.
EditingChanged   VCL compatibility.
FocusControl   Make the control to which this datalink may be bound receive the focus.
Insert   Attempt to go into dssInsert state and return the result without raising an exception.
LayoutChanged   VCL compatibility.
LockSessionCursor   This method will cause the screen cursor for the session to be left alone.
Modify   Attempt to go into dssEditState if a current record is in the buffer or dssInsert state if no current record and return the result without raising an exception.
RecordChanged   VCL compatibility.
Reset   Refresh the data the control to which this datalink is displaying to reflect the most current.
SetAdvSearchDisplay   Set the AdvSearchDisplay value.
SetFocus   Announce the focusing of the IB_DataSource, IB_Dataset, IB_Transaction and IB_Connection for this datalink.
UnlockSessionCursor   This method will allo the screen cursor for the session to be altered.
UpdateData   Save any changes the control is holding to the dataset.
UpdateRecord

Introduced Public Events
AfterAssignment  Event notification when this datalink is assigned to a new datasource.
AfterExecute  General event notification.
BeforeAssignment  Event notification when this datalink is about to be assigned to a new datasource.
BeforeExecute  General event notification.
OnActiveChange  General event notification.
OnDataChange  General event notification.
OnEditingChanged  General event notification.
OnLayoutChanged  General event notification.
OnOrderingChanged 
OnOrderingLinkChanged 
OnPreparedChanged  General event notification.
OnPrepareSQL  General event notification.
OnReceiveFocus  General event notification.
OnSearchingLinkChanged 
OnStateChanged  General event notification.
OnUpdateData  General event notification.