IllegalStateException: Application does not have any configured work area

Hi team,

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.

How can i fix this

regards

Hi,

It would be helpful if you attached a sample application with your loginWindow, frame and mainWindow, where the problem is reproduced.

Hello @mabutabee

Screens have to be opened in root screen that has WorkArea. Make sure that result of AppUI.getTopLevelWindow().getFrameOwner() invocation implements HasWorkArea interface.

Regards,
Daniil.

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.

sampleProject.zip (36.5 KB)