Hi,
I was wondering is it possible to populate a ListBox element in Runtime with a list created in ScadaAddin. And if it is possible then how should I do it? Thanks in advance.
Hi,
I was wondering is it possible to populate a ListBox element in Runtime with a list created in ScadaAddin. And if it is possible then how should I do it? Thanks in advance.
Hello Isimas3,
yes, you can configure a listbox to derive it's content from a string variable. So to modify the content of the list box you only need to modify the content of the linked string variable via AddIn.
Regards,
Felix
Thanks. it worked.
firstly I declared IVariableCollection with:
IVariableCollection myVariables = context.VariableCollection;
then I simply wrote value to each variable with:
if (myVariables[devi] != null)
{
myVariables[devi].SetValue(0, state);
}