Access denied when trying to open loginWindow screen from a button on the mainwindow screen


I have change my application landing screen to be the mainWindow scree by which i am logged in with anonymous user. I have a button on my mainWindow screen Login button with onClick code

openWidow("loginWindow", WindowManager.openType.Dialog);

but when i click the button i get an error access denied

I am trying a create an app that will allow a user to land on the mainWindow perfom some of the tasks while other tasks a not accessible unless user logs in.

How can i achieve this, thanks for the help


Unfortunately, you cannot open login window as DIALOG. It is not supported.

The only thing you could do is to create a new window with the same login logic.