What I’m trying to do:
Is anyone else having recent trouble with open_form()? I have an application which displays loading page before proceeding to the landing page. It worked on last night August 22nd, 2023 (US time zone) but isn’t on the morning of August 23rd, 2023.
What ends up happening for me is the loading page shows then the __init__ triggers, but none of my components display and the form_show doesn’t trigger.
What I’ve tried and what’s not working:
I created a simple version on one of my branches and added some print flags. “Flag” prints but “Flag 2” doesn’t. The landing page loads if it is the designated as the landing page instead of the loading.
Code Sample:
class Loading_Page(Loading_PageTemplate):
def __init__(self, **properties):
# Set Form properties and Data Bindings.
self.init_components(**properties)
# Any code you write here will run before the form opens.
def card_1_show(self, **event_args):
"""This method is called when the column panel is shown on the screen"""
open_form('Landing')
class Landing(LandingTemplate):
def __init__(self, **properties):
# Set Form properties and Data Bindings.
self.item['Is_Logged_In'] = False
self.init_components(**properties)
print("FLAG")
def form_show(self, **event_args):
print("FLAG 2")
2 of my currently running aps just broke. Neither have been changed in months, no major changes in over a year.
I have a person who is sitting around getting paid doing nothing because he is staring at a blank page, and the accounting department will start calling me in probably 20 minutes.
Both apps use a startup form landing page, then after the anvil.users.login_with_form() it uses anvil.users.get_user() to check an access level column, then open_form().
Hey there, we noticed heavy issues in most of our apps that are related to the form_show functions that are not called anymore. We first noticed these issues around an hour ago.
The error occurs in apps that have not been touched in a while and is happening on our dedicated server as well as in a free account where I tested another app. I was able to reproduce the issue with a fresh new app.
Apparently the error happens when opening a second form. In this second form the form_show is not triggered.
The app has the following logic:
Form 1 (Startup Form) → open_form(‘Form2’) in form_show
Form 2 → alert(‘Alert in form show in Form 2’) in form_show => alert is not triggered