List box
List whose selectable elements are obtained from project nodes or from one or more database tables.
Properties
Name | BrowseName | DataType | Description |
---|---|---|---|
Selected value | SelectedValue | Value of the property set in Path of the value selected when an element is selected at runtime. | |
Selected item | SelectedItem | Element selected when the object is initialized at runtime (if empty, it is initialized without selections). After initialization, this property displays the node corresponding to the selected element (access to the property is both read and write when the data are obtained from project nodes, read-only when obtained from a database). | |
Display value path | DisplayValuePath | Attribute/property of the nodes or column of a database table whose value is to display in the list. When a value is not assigned, if the model is node-based, the BrowseName of the nodes is displayed; if the model is based on a database, the value of the first cell of each row is displayed, except for queries that further filter the values. | |
Selected value path | SelectedValuePath | Property with which to assign a value to the Value property selected at runtime when selecting an element. | |
Query | Query | Standard SQL query to filter the data of interest. You can use it to filter data from a database and to filter data obtained from a node-based model. In case of a node-based model, the SELECT * FROM Model part is mandatory, followed by the WHERE clause with which to indicate the search conditions - for example: SELECT * FROM Model WHERE Speed > 40 | |
Order by | OrderBy | Attribute/property of the nodes or column of a table by which to sort the elements. Generally the same attribute/property or column from which the elements are obtained is set. | |
Methods
Refresh
- BrowseName
- Refresh
Events
Selection changed
- BrowseName
Provide Feedback