Struggling with to-do list app

I followed all the steps in this tutorial, but when I run it, I get:
anvil.tables.TableError: No such column ‘’ in this table. Did you initialise all data binding sources before initialising this component?

How do I initialise this?

This error means that a column is not present in your table.
To make things easier, you can go to the Data Table settings and check on auto-create missing columns.

I checked that, and it make no difference.
It looks like the following code does not get called:

self.repeating_panel_1.items = tasks.search()

Can you share a clone link to your app?

I hope this works:
https://anvil.works/build#app:WCGATV6OYOSYDDPE

This is not the Clone Link

Check out the docs for how to Clone apps

Anvil Docs | Cloning Apps

I do not have that button with “Clone app”…

Are you using the Classic Editor or the BETA editor?

If you are using the Beta editor, you can Clone app by clicking on the three dots next to ‘Publish’ button.

I saw it when I went back to the classic editor…
https://anvil.works/build#clone:WCGATV6OYOSYDDPE=R4XJMHC7V5WT7NMRS7TFDW2N

Also, the app logs function does not show any of my print() statements…

Sorry for the delay. I checked out your app and it contains a few issues which were causing it to not work.
As for the issue mentioned in your question, you had the data binding for your repeating panel template set to `

self.item['']

This was responsible for causing the issue above.

I also noticed that after performing this code

tasks = anvil.server.call('get_tasks')

You set the repeating panel items to

self.repeating_panel_1.items = tasks.search()

Instead, I replaced it with

self.repeating_panel_1.items = tasks

If you have any other questions please let me know

Here is the clone link to a fixed version
https://anvil.works/build#clone:AKXUH5JEARZFQ4VV=YGAMIRPAWKKCHIMAKC4I63XV

1 Like

Thank you very much. I’ve also added a ‘debug’ table to write debug messages into.

1 Like