TN IT204 How to add selections to a combo box in InTouch
Description
Method to load selections into a combo box in Wonderware InTouch
- Author: Benjamin Davis
- Published: 12/28/2015
- Applies to: InTouch 2014R2
Details
Begin by adding a combo box to an InTouch window.
1. In WindowMaker, click the Wizard hat in the tool bar.
2. Select Windows Controls
3. Select ComboBox
4. Click OK.
5. Click where you wish to place the combo box
Name the combo box and decide which InTouch tag you want the combo box to change.
1. Double click the combo box
2. Enter a name in the Control Name field, e.g., ComboBox_1
3. Enter the InTouch tag in the Tagname field, e.g., StringTag
Use the wcAddItem function in a script to add selections to the combo box
wcAddItem("ComboBox_1", "ReactLevel");
wcAddItem("ComboBox_1", "ProdLevel");
wcAddItem("ComboBox_1", "ReactTemp");