What I’m trying to do:
I created a new form using the custom html template. I have been fighting with getting spacing correct when placing left side bar along side a RepeatingPanel display of newly create responses from an Assistant AI api. I have the same form elements working in a previous form but in this case when I initialize the form it fails to load with the message :
TypeError: 'NoneType' object is not iterable. Did you initialise all data binding sources before initialising this component?
at update_binding.py:4
I have all the same code from the previous form in this form, the data bindings are set as they were in the previous form. I instantiate the new form using the same procedure i use for the 6 other forms in this application. Is there any way to get more information regarding where this error is coming from? Is there a traceback verbose setting?
Is there any other way to test the form? The repeating panels have a text area an ID number and text box for showing a line of text with each repeating panel filled – those are set using the items array and i have the same form elements (copied) from the previous version with the only difference being the use of the HTML form instead of the blank form element –
What I’ve tried and what’s not working:
Checking all of the existing form elements initialization from code and the repeating panel is created in a separate form element but that has worked across several versions of trying to get the HTML to look and work correctly –
Code Sample:
# this is a formatted code snippet.
# paste your code between ```
Here is the way the form is created and added to the project
self.agentchat_form = chat_upgrade()
self.agentchat_form.server = anvil.server
self.agentchat_form.globalhash = self.globalhash
self.globalhash.update({'current_selected_site':self.current_selected_site.text})
self.page_2_panel.clear()
self.page_2_panel.add_component(self.agentchat_form)
Thank you –
Clone link:
share a copy of your app