Skip to content

Unable to change forms in beforeEditing() method #113

@grasshopper139

Description

@grasshopper139

I have a form that does some API calls before calling the editing loop. If an exception is thrown, I want the parentApp to immediately switch to the MAIN form, however, it simply ignores the form switch and continues on with the method.

def beforeEditing(self):
    try:
        some_API_call()
    except something:
        self.parentApp.switchForm('MAIN')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions