Wonderware Question

Wormfood

Member
Join Date
Nov 2009
Location
Boise, ID
Posts
29
Created a ComboBox with a selection loaded with an application script during "while running". Everything works great, selection gets written to the right tag. Issue is when I change screens and come back to this screen the combobox clears. How would I keep the same value, or look up the value to reset to the PLC value in the script while still allowing changes?
 
Help file

Not sure how you have it scripted, but you will probably find the answer if you open WindowMaker, open the HELP file and type Retentive in the box on the Index tab.
 
Combobox solution

I remember having trouble with this. I'm not sure, but I think the problem is that the combo box can't be dynamically updated. My solution was to make a pop-up window "Select..." that contains a combo box for an indirect tag representing the dynamic or eligible tag ('MyTag').

The select window opens from an Action script assosiated with a text box where you normally would put your combo. An indirect tag is used.

The action script may look like this:
Prompt = "Select item from list:";
Itemlist = "Itemlist7"; {The name of the combo choice source file}
ComboBoxTag = MyTag;
ComboBoxTagIndirect.Name = MyTag.Name;
Show "Select...";
attachment.php
attachment.php


The "Select..." window runs this script 'On Show':
wcLoadList ( "ComboBox", Itemlist7 + ".txt" );

The [OK] button has this action script:
ComboBoxTagIndirect = ComboBoxTag;
HideSelf;

The [Cancel] button is just a
HideSelf;

I have made a general version of this "Select..." window that can read selectable items from different database tables, but I think it's better to show this simple principle for one specific tag.
 
Last edited:

Similar Topics

I have to work on a Wonderware HMI and have very little experience with it. The basic idea is to copy an old project, make a few edits, and load...
Replies
7
Views
4,910
Im using Wonderware Intouch machine edition v8.0. Question: How does the Math Worksheet/Task scripting work? I have the following expression...
Replies
3
Views
2,252
Hello all, I'm using WonderWare Intouch at my factory for the HMI. Here is what I'm trying to accomplish: Save data values (27 of them) into one...
Replies
21
Views
7,529
Hi Guy 1. Please how can I create a shutdown button on the intouch? 2. Also how can I configure graphical Trend for 9 different values/tags in it?
Replies
3
Views
2,720
Is Inbatch basically programmed similar to a PLC, it then reads/writes to a dumbed down PLC, which then performs the outputs? I'm having trouble...
Replies
4
Views
3,231
Back
Top Bottom