Login solution is not configured for webclient

Forum to discuss the Web client version of Servoy.

Login solution is not configured for webclient

Postby maria.kyselova » Thu Oct 03, 2013 7:31 am

Hi guys,

When logging out of my solution in webclient, I am taken to 'Error loading solution' page.
There are no errors in the log file, only this: "INFO com.servoy.j2db.util.Debug Not loading solution login, it is not configured for webclient usage"

How do I configure the login solution for webclient?
Thanks.
Cheers,
Maria
maria.kyselova
 
Posts: 172
Joined: Thu Aug 09, 2012 12:56 am

Re: Login solution is not configured for webclient

Postby david » Thu Oct 03, 2013 8:07 pm

Are you somehow targeting the login module when you logout? You cannot target anything in that module directly from a client (showing a form, logout solution redirect, etc).
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Login solution is not configured for webclient

Postby maria.kyselova » Fri Oct 04, 2013 1:44 am

david wrote:Are you somehow targeting the login module when you logout? You cannot target anything in that module directly from a client (showing a form, logout solution redirect, etc).


Well, David, what I do is this:

Code: Select all
security.logout("login");


In Smart Client it returns me to the login screen.
In Web Client it complains.

Also, application.closeAllWindows(); doesn't seem to work in Web Client :(
Cheers,
Maria
maria.kyselova
 
Posts: 172
Joined: Thu Aug 09, 2012 12:56 am

Re: Login solution is not configured for webclient

Postby david » Fri Oct 04, 2013 8:21 pm

maria.kyselova wrote:what I do is this:

Code: Select all
security.logout("login");


Don't put the login module name there. Put the name of the module that is your main application entry point. The one that has property "loginSolution" value as "login".

maria.kyselova wrote:Also, application.closeAllWindows(); doesn't seem to work in Web Client :(


Correct. Welcome to web client world :)
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Login solution is not configured for webclient

Postby maria.kyselova » Tue Oct 08, 2013 1:50 am

david wrote:
maria.kyselova wrote:what I do is this:

Code: Select all
security.logout("login");


Don't put the login module name there. Put the name of the module that is your main application entry point. The one that has property "loginSolution" value as "login".


Awesome. Thanks, David, that worked.

david wrote:
maria.kyselova wrote:Also, application.closeAllWindows(); doesn't seem to work in Web Client :(


Correct. Welcome to web client world :)


Yeah, haha, but really, how do you deal with it?
Cheers,
Maria
maria.kyselova
 
Posts: 172
Joined: Thu Aug 09, 2012 12:56 am

Re: Login solution is not configured for webclient

Postby maria.kyselova » Tue Oct 08, 2013 5:22 am

david wrote:
maria.kyselova wrote:what I do is this:

Code: Select all
security.logout("login");


Don't put the login module name there. Put the name of the module that is your main application entry point. The one that has property "loginSolution" value as "login".

maria.kyselova wrote:Also, application.closeAllWindows(); doesn't seem to work in Web Client :(


Correct. Welcome to web client world :)


David, my windows are now closing in webclient. I changed nothing.
I don't understand but I don't mind either :D
Cheers,
Maria
maria.kyselova
 
Posts: 172
Joined: Thu Aug 09, 2012 12:56 am

Re: Login solution is not configured for webclient

Postby david » Tue Oct 08, 2013 1:07 pm

My understanding of application.closeAllWindows() is that is closes everything but the main application window. And since you can't show multiple windows in web client, it's not used for anything in web client. But maybe that has changed with a version of Servoy.

There are various javascript hacks for closing windows and tabs but they are all somewhat browser specific.

On logout, we send users to a generic page which we can optionally insert messages to and they can use to get back to the login page:

Screen Shot 2013-10-08 at 7.05.47 AM.png
You do not have the required permissions to view the files attached to this post.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Login solution is not configured for webclient

Postby maria.kyselova » Thu Oct 10, 2013 12:27 am

david wrote:My understanding of application.closeAllWindows() is that is closes everything but the main application window. And since you can't show multiple windows in web client, it's not used for anything in web client. But maybe that has changed with a version of Servoy.

There are various javascript hacks for closing windows and tabs but they are all somewhat browser specific.

On logout, we send users to a generic page which we can optionally insert messages to and they can use to get back to the login page:


Thanks, David.
Cheers,
Maria
maria.kyselova
 
Posts: 172
Joined: Thu Aug 09, 2012 12:56 am

Re: Login solution is not configured for webclient

Postby maria.kyselova » Fri Nov 01, 2013 7:43 am

Guys, I still have a problem. Please help.

In our multi-window application, I successfully close all windows, logout and display the login screen on the main page only if I log out of the main page.
But because each of our windows has the logout button, whenever I log out of a window that is not main, everything closes except the current active window and main page. Also the login screen is displayed on that current active window, rather than the main page. At the same time, the main page is just hanging there, logged out but not timed out or anything, like nothing happened.

I kind of understand why it happens, but I cannot find a way to get around this.
Please help.
Cheers,
Maria
maria.kyselova
 
Posts: 172
Joined: Thu Aug 09, 2012 12:56 am

Re: Login solution is not configured for webclient

Postby david » Fri Nov 01, 2013 11:11 am

maria.kyselova wrote:I kind of understand why it happens, but I cannot find a way to get around this.


Scott explained it best here: viewtopic.php?f=34&t=19952#p107395

In my words...multi-window apps with Servoy web client?! You're crazy :)
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 5 guests