Data bindings and repeating panel

Where do you write the data binding code if the text box is in a repeating panel or row in a tabulator table?

Another way to ask the same question is, Is there a row_refresh_data_binding attribute for repeating panels or refresh_data_bindings script for a specific component?

I have seen this done by creating an empty form specifically for a single component to give it, its own data binding and then insert that form as a component, but I am worried this carries a lot of unnecessary overhead (maybe it does not, that is an assumption).

Hi @lsaenz9104 ,

I think the question might need to go into some more specifics about what you’re trying to do.

Databindings in anvil are typically associated with the item on a form since you can trigger a refresh using

self.item = self.item

And anvil Forms have a refresh_data_bindings method as well as an associated event.

Repeating panels use an ItemTemplate which itself is a Form and so databindings are straightforward in this context.

I don’t think that really answers your question though.