# Not a great example, but (something very much like) this works for me
roles = system.dataset.toPyDataSet(system.db.runNamedQuery(“UserManagement/Get Roles for a UserName”, {‘UserName’:row.get(‘username’)}))
entries = []
for i in range (len(roles)):
entries.append(roles[i][0])
return ', '.join(map(str, entries))
You should note that in my example I’m using 8.0.6, so runNamedQuery no longer requires a project name argument. I have no idea how you’re acquiring the row
variable you’re using to get the user’s name, and so I didn’t use arguments in my query. My result came back as
"Supervisor, OtherRole, Third"
.
If this isn’t helpful, could you provide any stacktrace you’ve come across when your Designer crashes?