Screens and Graphics • Type combo box: Select the type of data source that you want to use, and the click the Settings… button to configure the source. Each type of source is described in detail below. • Field field (for Text File and Database only): Specify which field/column of the data source to read from. • Reload field (for Text File and Database only): Enter a tag name. When the value of the specified tag changes, the combo box will reload the labels from the data source. Type: Static Labels When Type is set to Static Labels , you can configure the following settings: Static Labels dialog Enter your labels — with one label per line — just as if you were editing a plain text file.
You can include tags or expressions in a label by enclosing them in curly brackets. For example: Tank #1 in area {AreaNameTag} . The labels are not sorted in any way, so be sure to put them in the order you want them displayed during runtime. The first line is position 0, the second line is position 1, and so on. Click OK when you're done. Type: Array Tag When the Type is set to Array Tag , you can configure the following settings: Array Tag dialog • Array Tag : Enter the name of an array tag of String type that contains the items for the combo box. • Number of Items : Specify how much of the array should be displayed in the combo box.
Keeping in mind that the combo box counts array index 0 as the first item, if you enter a value of 4, then the combo box will display array index 0 through array index 3 . Click OK when you're done. Type: Text File When the Type is set to Text File , you can configure the following settings: Grid Data – Text File dialog • File : Enter the name of the text file source. You can either type the file name and its path or click the … button to browse for it. (If the file is stored in your project folder, then you can omit the path in the name.) Page 176 InduSoft Web Studio