What I’m trying to do:
Im trying to build my own app based on your example ‘Ticketing App’ as a starting point.
What I’ve tried and what’s not working:
When I click on a particular ticket instance in the Tickets view (from left hand side menu) to view and possibly edit a specific ticket, I get the following error when I run a published version of the app.
TypeError: can’t compare ‘datetime’ to ‘date’. Did you initialise all data binding sources before initialising this component?
When I run the app in preview mode, the same action generates the following errors in the console:
New session: 10/11/2022, 18:30:49
Warning: Tickets.form_show does not exist. Trying to set the ‘show’ event handler of self from Tickets.
Warning: Tickets.form_refreshing_data_bindings does not exist. Trying to set the ‘refreshing_data_bindings’ event handler of self from Tickets.
Warning: Info.form_show does not exist. Trying to set the ‘show’ event handler of self from Info.
Warning: Ticket.form_show does not exist. Trying to set the ‘show’ event handler of self from Ticket. Warning: Ticket.cancel_link_click does not exist. Trying to set the ‘click’ event handler of self.cancel_link from Ticket. Warning: Ticket.save_button_click does not exist. Trying to set the ‘click’ event handler of self.save_button from Ticket.
TypeError: can't compare 'datetime' to 'date'. Did you initialise all data binding sources before initialising this component?
-
Error binding
item
ofticket
toself.item
:
can't compare 'datetime' to 'date'
-
at Tickets.Ticket.Info, line 49
-
called from Tickets.Ticket.Info, line 81
-
called from Tickets.Ticket, line 39
-
called from Homepage, line 84
-
called from Tickets.Tickets.TicketList.TicketRow, line 40
This is all too disappointing for someone who needs Anvil as a reliable starting point to build simple apps and to also learn Python. Why are so many errors being generated and where do I begin unraveling? Is there a quality control check before these example apps become examples which I assume thousands of enthusiasts like me use to learn Python? Thanks.
Code Sample:
# this is a formatted code snippet.
# paste your code between ```
Clone link:
share a copy of your app