- Getting started
- Creating projects
- OPC UA
- Graphic objects
- Predefined graphic objects
- Object and variable references
- Extending projects
- NetLogic
- Tutorials
- Dynamic links tutorial
- Graphic objects tutorial
- NetLogic tutorial
- OPC UA tutorial
Configure a combo box
Configure a combo box to get data from a project node or a database.
- InProject view, inUI, right-click a container and then select .
- InProperties, either:
- Create a dynamic link between theModelproperty and a project node. This obtains values of attributes or properties of all direct child nodes.For example, select theModelfolder with objects that contain data. For more information, see Project nodes.
- Create a dynamic link between theModelproperty and a database object. This obtains data contained in database tables.For example, select an Embedded, ODBC, or InfluxDB database object. For more information, see Database.
For more information about dynamic links, see Create dynamic links. - (optional) Specify the kind of items to display in the object by settingItemKind.TIP:TheItemKindproperty is automatically set with the object or variable type recognized among the child nodes.For example, if the model is based on a folder node that contains several instances of aMotorobject type,ItemKindis automatically set with the reference to theMotortype. In this case, the values that display are the attributes or properties of different instances (Motor1,Motor2,Motor3, and so on).
- (optional) InQuery, enter a standard SQL query to filter items obtained from a database or project nodes as specified inModel.For more information, see SQL queries.For example:SELECT * FROM Model WHERE SPEED > 40SELECT * FROM "DataLogger1" WHERE Speed > 40
- (optional) FromMode, select the combo box variant:
- Normal. Select existing items.
- Normal with text search. Select existing items or enter complete names of existing items.
- Editable. Select existing items or enter complete names of existing items. To create new items, enter new item names.
- (optional) Create a dynamic link betweenSelected itemand the item to be selected by default.For more information about dynamic links, see Create dynamic links.
- (optional) SetAllow deselectiontoTrueto enable clearing of selected items in the object.
- (optional) InEvents, associateSelection changedwith theRefreshmethod.The items contained in the object refresh each time you interact with the object.
- (optional) Sort items by settingSort orderandOrder byvalues.
combo box
Provide Feedback