Ignition Strings

When I input a string into a text field, how can I put that in a visible scrolldown list in the same screen? And when I update my text field, the new string will be into that list also.

i.e.
Text Field: 1234 List shows: 1234

Text Field: 5678 List shows: 1234
5678

Text Field: abcd List shows: 1234
5678
abcd

Please help. Lets say the text field has a tag called “field”. How would I transfer field and each new string of field into the list. Would I use a text area, chart, or scroll down list? Sorry, am new to this.

This again is probably best handled with a tag change script, that appends data to the dataset for the “dropdown list” component (found under the “input” tab of the component palette). For more information about dropdown lists and working with datasets:

inductiveautomation.com/support/ … mbobox.htm
inductiveautomation.com/support/ … atatyp.htm

Can you give me a snipet of code as example to get started?

Well, the scripting function system.dataset.addRow() has a nice example, and is a direct example of how to append to a dropdown list’s dataset:

inductiveautomation.com/support/ … addrow.htm

As a reminder, if you’re using this in a tag change script, you’ll need to reference the component of a window using system.gui.getWindow(), and the window being referenced using getWindow() has to be open at runtime for the script. For more information about working with components:

inductiveautomation.com/support/ … onents.htm