I’m trying to list all of the usernames in the internal profile into a table and / or drop down list. When I run the following code, I’m getting an error of “Row 0 doesn’t have the same number of columns as header list”.
[code]users = system.user.getUsers("")
rows = []
headers = [“user”]
for user in users:
oneRow = user.get(user.Username)
rows.append(oneRow)
data = system.dataset.toDataSet(headers,rows)
table = event.source.parent.getComponent(‘Table’)
table.data = data[/code]