I'm trying to edit values of a dataset by converting it into a py dataset but I'm not having any luck.
When I submit an edit to a cell I get this error.
Is there a better way to edit a dataset in a table?
Thanks!
I'm trying to edit values of a dataset by converting it into a py dataset but I'm not having any luck.
Thanks!
So your code would look like this:
self.props.data = system.dataset.setValue(self.props.data, event.rowIndex, event.column, event.value)
FYI the error in your screenshot was likely caused by event.column
in line 7 of your code screenshot. You'll notice under arguments that event.column
can be a str
or string value. The column index value for your pyDataSet must be an integer.
That's just the function I needed! It's working now.
Sorry ! I went back and added those 4 comments and forgot to re screenshot the error. I'll keep these in mind for next time!
Thanks for the quick reply!
Ahhh, that makes sense. Thanks for pointing that out!