Hello,
I am very new to Anvil and Python.
I want to bind data from a table to a label in my form.
Is it possible to bind data in the free-version of Anvil?
Hello,
I am very new to Anvil and Python.
I want to bind data from a table to a label in my form.
Is it possible to bind data in the free-version of Anvil?
Welcome to Anvil!
Yes, it’s possible to populate a label’s contents from a column in a data table. You might want to start with some of the tutorials to get through some of the Anvil learning curve. Anvil | Build a Simple Feedback Form
Hello jshaffstall,
thank you for the answer!
I was able to store data out of a text box from a form in a table like it the tutorial you sent me.
Now I want to do it the other way around and show some text that is stored in the table in a label from a form.
I have read the information about Data Bindings on the Anvil website and it seems like a very easy method. But when I try to add a data binding it looks like the “self.label” doesn´t find the column i´ve generated (in the example on the website the columns which are generated are suggested but in my case it doesn´t suggest anything). The app doesn´t point out a fault but it also doesn´t show the text.
Can you help me with that?
Have you gone through the data tables tutorial? Anvil | Data Grids: Displaying Data In Tables
If you have gone through that one, and are still having trouble, you should post some code (in your case the code for the form and the data bindings that you’re using). It’s hard to give specific advice (other than “use this tutorial”) without specifics in what’s going on in your app.
This might also be useful: How to ask a good question