@pturmel is correct about your cols variable being overwritten.
You also don’t need to “manually” set the property to which you are applying this binding result.
You’re getting object not found because you’re making a list of lists, when you really want a list of objects.
instances = []
column_headers = system.dataset.getColumnHeaders(value)
for row_index in range(value.getRowCount()):
# Right here you want an object/dict - not a list
row_data = {}
for column_index in range(value.getColumnCount() - 1):
row_data[column_headers[column_index]] = value.getValueAt(row_index, column_index)
instances.append(row_data)
# note here that I am simply returning the instances, instead of assigning them
# directly to the property
return instances
Gotcha,
Thank you for the neat step by step explanation. and also thank you @pturmel.
Yes it worked and I now see how it is structured and how to manipulate it.
I just started with Perspective with minimal knowledge but I am starting to like it Not as intimidating as i thought The presentation and sizing are cool with Perspective compare to Vision.
Cheers