[SOLVED] How do you read a dataset from a templates parameters

I have a template ‘Arctic’. On this template is a single template parameter called ‘Table’. ‘Table’ is made up of dataset [3R x 1C] with values ‘Cold’, ‘Snowy’, and ‘White’. On the template is a mouseClicked script with the following that does not work:

data = event.source.getPropertyValue("Table").Table
pds = system.dataset.toPyDataSet(data)

for row in pds:
    for value in row:
        print value

Now the intent is to print the values ‘Cold’, ‘Snowy’, and ‘White’. How would I go about scripting this to print the 3 values? Thank you for any help.

Somehow I am really good at finding my answer 5 minutes after I post it here… :sweat_smile:

data = event.source.Table
pds  = system.dataset.toPyDataSet(data)

for row in pds:
    for value in row:
        system.gui.messageBox(value)