A Data Control defines the connection to the OLE DB data provider and determines what data to
retrieve. To display the retrieved data, use the Grid, ListBox, and ComboBox Controls.
The Grid Control displays data in a table-like format. The ListBox and ComboBox Controls display the
values of a single column of a queried table in a scrollable list box or a drop-down list box.
To display data in these controls in iFIX, you must animate them and select the Data Control as the
animation data source. The animated connection means that you can re-configure the Data Control, for
example, to query another database or table, and automatically update the display in the connected dis-
play controls.
Note that you can also animate the query properties of the Data Control with the values of the Grid,
ListBox, and ComboBox controls. For example, the item selected in a list box can animate a Data Con-
trol query property, which is used to filter the data returned by the data query.
For more information about animating objects, see the iFIX
Creating Pictures
e-book. For more inform-
ation about animating query properties, see Animating Query Properties.
Animating a Grid Control
Typically, the data source that animates the Grid Control is a Data Control. Most often, the data source
name is:
Picturename.vxDataN.ADORecords
where
Picturename
is the name of the WorkSpace picture and vxData
N
is the Data Control that is anim-
ating the Grid Control. The last part of the data source name, ADORecords, is selected from the Prop-
erties list; it contains the data retrieved from the OLE DB data provider.
NOTE: In place of ADORecords, you may want to select ColumnNames from the Properties list to display the
column names of the queried table or TableNames to display the table names of the queried database.
Animating ListBox and ComboBox Controls
ListBox and ComboBox Controls display the values of a column in the table of retrieved data. To des-
ignate which column values to display, you need to know the column sequence in the retrieved table.
Generally, this should match the sequence of columns in the SQL Select statement built by the SQL
Wizard.
Typically, the data source that animates the ListBox or ComboBox Control is a Data Control. Most
often, the data source name is:
Picturename.vxDataN.ADORecords
where
Picturename
is the name of the WorkSpace picture and vxData
N
is the Data Control that is anim-
ating the ListBox or ComboBox Control. The last part of the data source name, ADORecords, is selec-
ted from the Properties list; it contains the data retrieved from the OLE DB data provider.
NOTE: In place of ADORecords, you may want to select ColumnNames from the Properties list to display the
column names of the queried table or TableNames to display the table names of the queried database.
Animating Query Properties
© 2020 General Electric Company. All rights reserved. 111