login issue in ngclient solution.

Forum to discuss the new web client version of Servoy.

login issue in ngclient solution.

Postby ashutoslenka426 » Thu Dec 10, 2015 4:49 am

Hi All,

I have implemented servoy security in ngclient solution . Everything is working fine but it is not switching to the solution first form .The security.login method is returning true . But after that it should switch to the main solution first form . But it is not doing so . But the similar stuff is working fine for smart client and web client. Please advise me.
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: login issue in ngclient solution.

Postby derk.hulshof » Thu Dec 10, 2015 10:48 am

Hi Ashutos,
This issue is already reported to Servoy. I think it will be solved in v8.0.2.

In the meantime you can hardcode the record id of the login user to fake the login.
It should provide you with a first form.
At least in my solution this workaround works.

Derk
derk.hulshof
 
Posts: 108
Joined: Tue Dec 03, 2013 9:18 am
Location: Netherlands

Re: login issue in ngclient solution.

Postby Ruben79 » Thu Dec 10, 2015 11:19 am

Are you on 8.0.1? I had the same issue, just made some time to test it through.
I could not find an issue, so I created one: https://support.servoy.com/browse/SVP-738

A workaround is to use application.showForm() at the end of your onOpen method.
Ruben de Jong
Stb Software Development
SAN Partner

Stb Software Development - http://www.stb.nl
User avatar
Ruben79
 
Posts: 97
Joined: Wed Apr 18, 2007 12:43 pm

Re: login issue in ngclient solution.

Postby ashutoslenka426 » Thu Dec 10, 2015 11:35 am

Hi derk ,

Thanks for your reply . I could not able to get the work around . Can you please explain the work around little further.
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: login issue in ngclient solution.

Postby derk.hulshof » Thu Dec 10, 2015 11:59 am

I am on v 801
Issue is there; I created it myself :D

Well I disabled the login and authentication on my solution.
I use a scope for session handling etc.

Normally after login I have the user credentials and put that in an javascript object.
Now I hardcoded some variables in that object to have a admin account settings after login.
Just load the form and it will display the same stuff as you have with login credentials
derk.hulshof
 
Posts: 108
Joined: Tue Dec 03, 2013 9:18 am
Location: Netherlands


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 2 guests