Reported this before on the Servoy 5.2 final thread but they got overlooked by bigger badder stuff. Trying again:
When you choose Logout on the File Menu of client, on the mac it asks you to log back in twice. On the PC, it offers you the solution choosing dialog twice.
Also, why is Open Solution greyed out? My users are trained to use that to refresh their solutions in certain situations.
Finally, Servoy 5.2 is different than Servoy 3.5.12 in that it seems to enter my solution BEFORE you login to it. Meaning, if my users get to the login window and cancel, then try to quit Servoy, my onClose script fires. That doesn’t seem correct at all since people shouldn’t be in the solution if they haven’t passed the login window, no?
I am not using advanced security.
Also, note some of this is reproduceable in smart client launched from inside developer, some is not – you must be using client from the server to see the last one for sure.
for sure my login and open solution function is different than yours. I think everybody has it’s own philosophie.
I deactivate the Menue in top of the client window, because I wouldn’t like that my customers navigate there. For login I have an individual loginform and on the navigatorform a logout-/loginbutton. If the user/customer click that button, I’m fireing a function:
//set the globale to 1 for passing the onClose function
globale.gCheckOnClose = 1
security.logout
and in Servoy 5.2 using enhaced security my loginform in the solution/module “login” is displayed.
In Servoy 5.1 I add a codeline: application.showForm(forms.loginform).
Perhaps I could give you an other/new idea for you to fix the issue.
Great news. Anything on the fact that my solution is loading before the user logs in? Seems odd. I will find a way around it if you guys intended that as a feature.
is your login window a form of your own?
Then the solution in the “old” security settings is already loaded “a bit” because we need your login form.
So it then possible that you will get an onclose.
with the advanced security this will not be the case because your solution will not load. only you login solution will load.
My login form is not a custom form of my own, but the built in one. But I have disabled advanced security, in the interest of getting from 3.5.12 forward as quickly as possible. Still, my onClose method fires if I cancel the non-custom login dialog, and eventually gives an error because it can’t find controllers I am referring to. I wrote a workaround into my onClose to test to see if I’ve actually gotten into the solution so the user knows nothing, but I thought the behaviour strange as the user hasn’t passed security and yet is firing my solution methods.
This is still happening in 5.2.1 fyi. On mac, launching the smart client from developer always asks me to login twice. The second one I can ignore and it will go away on its own.
Just unchecked advanced security and relaunched on that macbook. Same problem. BTW, when I say I can ignore the second login dialog I meant I have to cancel it. With adv security and without.
OK, but this bug is by the way fixed the way I originally reported it – what I have now is ONLY smart client launched from developer, and only mac. The stuff above is all gone and better. Just confirmed.