write data back to anvil data table #83
Replies: 1 comment 5 replies
|
The quick solution: def tabulator_cell_edited(self, cell, **event_args):
"""This method is called when a cell is edited"""
field = cell.get_field()
row = cell.get_table_row()
row[field] = cell.get_value()Why this works: Why your code breaks: There's something weird going on with the line The problem is that you are not defining your index column. But like I said - there's no need to update the data here since it's up to date |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What I’m trying to do:
writing data back from tabulator table to anvil data table:
What I’ve tried and what’s not working:
tried to use the tabulator and anvil functions to write back the data persistantly
Code Sample:
Clone of the app: https://anvil.works/build#clone:FUZMCJAXR3VC3FCL=XTER2ZAWCJF2BT6XJ4Y7EBU4
All reactions