Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A ComboBox graphical element allows users to select items from a predefined list.

On this page:

Table of Contents
maxLevel3
styleNone


Requirements

This component is Portable. It runs both on Windows and on Web Pages hosted in any platform.


Configuration

  1. Go to Displays / Draw.
  2. On the Components Panel, select Interaction, then ComboBox.
  3. Click or drag-and-drop it on the Drawing area to use it.
  4. Double-click the component to open the configuration window.

Image Modified


Specifies a command or function that reloads the items in the ComboBox. Ensures that the ComboBox displays the most current data, useful for dynamic or real-time data sources.

Combo Box Settings

Field

Description

LinkedValue

Specifies the variable or tag to which the ComboBox is bound. Ensures that the selected value in the ComboBox is linked to the specified data source, enabling dynamic updates and data binding.

Binding

Sets the binding mode for the component. Options are:

TwoWay: Updates the data source and UI interchangeably;

OutputOnly: Allows data output without user input;

InputOnly: Accepts user input without updating the data source.

SelectedIndex

Specifies the index of the currently selected item in the ComboBox. Allows the application to track the selected item and update other components accordingly. 

Items Source

Determines the source of the items displayed in the ComboBox.

Can be bound to a list or collection, and users can specify the type of data, such as text or objects.

Options are:

Text

Designer: Allows the ComboBox to display a list of simple text items

. Useful for representing straightforward string values such as machine states or operational modes.Array

, configured in the designer.

StringTag: Tag with ComboBox items separated by ';' semi-colon.

ArrayTag: Allows the ComboBox to display items from an array.

Suitable for predefined sets of options, such as lists of sensor IDs or operational steps, enabling efficient management of uniform data.Object

DataTable: Allows the ComboBox to display items from a collection of objects.

Ideal for complex data representation where each item has multiple attributes, such as equipment lists with properties like name, ID, and status

.

Is Editable

Allows users to type in the ComboBox to add new items or select existing ones when selected. This feature is useful in scenarios where predefined options are insufficient.

Start Index at One

Sets the index counting to start at one instead of zero when checked. Useful for user interfaces where the indexing needs to align with non-programmatic conventions.

MaxItemsReload

Specifies the maximum number of items that the ComboBox can display or hold. Limits the number of items to prevent overload and improve performance.

Reload

a command or function that reloads the items in the ComboBox.



DataTable Items Source

When using a DataTable as the Items Source, the value can be from a DatasetQuery, or a DatasetTable, a DataTable Tag, or an Array Tag of DataTemplates.

When using Dataset Table or Queries, there is no needing to call the Select(), the ComboBox will call the Select() to the Table or Query when initializing.

In order to define which column from the Database will populate the ComboBox, there are 2 options:

  • Using the DisplayMemberPath and SelectedValuePath
  • Using the Element UId or First Column

DisplayMemberPath and SelectedValuePath

The DisplayMemberPath is the name of the Column in the source table, that will populate the ComboBox.

TheSelectedValuePath is the name of the Column in the source table, that will be assigned to the LinkedValue when the selection changes.

When both elements are defined, and the source table contains those columns, the system uses this configuration to populate the ComboBox. Otherwise it will use the UId of the element, or the 

Element Uid or First Column

The UId is the element identification defined in the Properties SideBar.

If there is a column in that table that matches that Uid, the contents of that column, converted to string, is used to populate the ComboBox.

When that column is not found, the first column is used. 


Runtime Execution

When users select an item from a combo box, the application updates to reflect the chosen option. This selection changes the displayed data or configuration settings according to the user's choice. The combo box helps users choose from predefined options, such as a machine type or report format.Image Removed


Tip
iconfalse

Check out our the example ComboBox from Table to see this control in action.



In this section:

Page Tree
root@parent
spacesV10