What I’m trying to do:
open a form in my M3 project. I created a form that is not designed to have the menu components but rather appear more like a popup with a Done button to go back to the launching form which is a subform of Main.Home form. The new form is of the type “Blank Panel” – When I attempt to show this form using open_form(addnewfeed) – where addnewfeed is the blank panel form, which has been imported into the launching form. I get the error message: “TypeError: Attempting to open a form which is not an anvil component, (got type module), when trying to open this form”
What I’ve tried and what’s not working:
I first searched the forum for this error message and nothing showed up.
I tried to get_open_form().content_panel.clear() and then with the content_panel add the form – that failed. The Form that I opening the subform in is also a subform of the Main.Home form. Therefore I would need to replace contents of the slot_1 apparently, but that is also not available. So I guess my best alternative is to create yet a new form based on the Main form and keep the menu on the left (although it cramps the room I need for the new form)…
Please advise and thank you.
Code Sample:
# this is a formatted code snippet.
# paste your code between ```
Clone link:
share a copy of your app