Function |
Combo Box |
List Box |
Text Box |
var item=myscada.getSelectedItem(id); |
Yes |
Yes |
Yes (returns value) |
myscada.setSelectedItem(id,(‘item’); |
Yes |
Yes |
Yes (sets value) |
var index =myscada.getSelectedIndex(id); |
Yes |
Yes |
No |
myscada.setSelectedIndex(id,(index); |
Yes |
Yes |
No |
var object = myscada.getObject('id'); |
Yes |
Yes |
Yes |
var items = ['item 1','item 2']; myscada.setItems('id',items); |
Yes |
Yes |
Yes (sets first value in array) |