Write to Tags from Perspective Table

Good day,

I am reading a lot of posts about how to write to a tag from a perspective table but have not found a solution for what I am trying to do.

I would like to use a perspective table as an input for multiple indirect tags bound to each data prop element. I am not binding to the entire data prop, but instead items in each array:

I have tried using the following:

def runAction(self, event):
	valueToSet = event.value
	self.props.data[event.row]['value'][event.column] = valueToSet

and get the following error:

Error running action 'component.onEditCellCommit' on 9 Press KY/AgingOvenLoad@D/root/Table: Traceback (most recent call last): File "<function:runAction>", line 3, in runAction KeyError: value

Is this possible to do with a perspective table or am I going down a dark hole. Once this is setup, there will be a set amount of data points and the entire dataset will not change in size. Thanks!

Make sure cells are set to be editable under your columns property, then under onEditCellCommit event, use

self.props.data[event.row][event.column] = event.value

Thank you worked like a charm.

1 Like