Perspective scripting-how to reference a specific cell in a table in python

Are you using a dataset or JSON for the table's data property?

This works with the default table component data.

def runAction(self, event):
	data = self.getSibling("Table").props.data
	for row in data:
		country = row['country']
		# Do something with country ...

Please see Wiki - how to post code on this forum.

1 Like