Fill dropdown list with folder of tags

Hi everyone,

I would like to know if it is possible to fill a dropdown list with a all the tags of a folder, I did not find the syntax of a loop to browse the tags of a folder

Thank you in advance for your help.

Théo.

Welcome to the forum.

This should help you, system.tag.browse - Ignition User Manual 8.1 - Ignition Documentation

Hello!

Thank you for your answer.

I found that function and tried to use it but maybe it’s not the right place or i executed it badly but it doesnt work

system.tag.browse(’[default]’,{“recursive”:True})
for result in results.getResults():
print result

Should I put it in a ‘For’ loop ? Does it have to be used inside a script or in an expression ?

Do you have any example ?

Théo.

You don’t seem to be storing the returned value from the function in a variable. Also - and this could just be a formatting issue - your print statement must be indented. I’m surprised this code is not throwing an error/exception when you try to execute it; I would expect a NameError since results does not exist as a variable by the time you reference it.

Try this:

results = system.tag.browse(’[default]’,{“recursive”:True})
for result in results.getResults():
    print result