Why no refresh_data_bindings() for write back data binding?

For those following this thread - I’ve added a feature to the augment library. The latest version can be found within the anvil-extras package (This feature will get added in the next version release)

Anvilistas - The Greatest Hits

It overloads the trigger method that already existed when using that library. It aims to address the issue highlighted in this thread that it’s not possible to trigger a writeback on TextBox or TextArea change events and creating a custom component to do the same thing is a little cumbersome

It can be used as follows:

from anvil_extras import augment

def textbox_change(self, **event_args):
    event_args['sender'].trigger('writeback')

This will work on any component that has writeback properties set.

3 Likes