Skip to main content
InSource Solutions

TN IT205 How to add selections to a list box in InTouch

InSource_Logo_Transparent.png

 

Description

Method to add selections to a list box in Wonderware InTouch

 

  • Author: Benjamin Davis
  • Published: 12/28/2015
  • Applies to: InTouch 2014R2

 

 

Details

Begin by adding a list box to an InTouch window.

1. In WindowMaker, click the Wizard hat in the tool bar.

2. Select Windows Controls

3. Select ListBox

4. Click OK.

5. Click where you wish to place the list box

list.png

 

Edit section

Name the list box and decide which InTouch tag you want the list box to change.

1. Double click the list box

2. Enter a name in the Control Name field, e.g., ListBox_1

3. Enter the InTouch tag in the Tagname field, e.g., StringTag
l2.png

 

Use the wcAddItem function in a script to add selections to the list box

wcAddItem("ListBox_1", "ReactLevel");
wcAddItem("ListBox_1", "ProdLevel");
wcAddItem("ListBox_1", "ReactTemp");