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

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)