Im am getting this error (IllegalStateException: Application does not have any configured work area) when trying to open a screen.
I have customized my loginWindow by hiding the loginWrapper and the poweredByLink label. then i added a frame and assigned the screen of the frame to a mainWindow screen. So when my application starts it shows the mainWindow. But trying to open any screen gives me that error.
Screens have to be opened in root screen that has WorkArea. Make sure that result of AppUI.getTopLevelWindow().getFrameOwner() invocation implements HasWorkArea interface.
Here is a sample project below, I have created a logIn screen and two mainWindows. The first with a screen ID mainWindowLandPage and the second with a screen ID mianWindow.
On my logIn screen i have a frame calling the mainWindowLandPage screen, so this appear at app start up.