What I’m trying to do:
writing data back from tabulator table to anvil data table:
having an editable cell, that, once filled, should write back to the anvil data table
What I’ve tried and what’s not working:
Code Sample:
def tabulator_cell_edited(self, cell, **event_args):
"""This method is called when a cell is edited"""
#self.tabulator.set_data()
self.tabulator.update_data([{id:cell.get_row().get_index(), cell.get_field():cell.get_value()}])
curr_slot=cell.get_row().get_cell("timeslot").get_initial_value()
curr_row = app_tables.plan.get(date=cell.get_row().get_cell("date"),slot=curr_slot)
field=cell.get_field()
# Set new value
curr_row.update(field=cell.get_value())
@stucork i am new here, i was a bit confused about the previous thread closing/my post deleted (Tabulator - with anvil components - #18)
you wrote that i should start a discussion maybe also on github - am not sure about that, since it might be that i am just not experienced enough with your tabulator component and someone can help me out quickly?
i hope the context is understandable from what i wrote above. if not, let me know!
i think your app needs at least the updated dependency to TGQCF3WT6FVL2EM2 for tabulator. and then there are some other errors that i cant understand.
thanks for the reference though, i will check the code out at least!