Start a second instance of smart client from within SC ?

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Start a second instance of smart client from within SC ?

Postby Bernd.N » Fri Sep 23, 2016 5:43 pm

As we need to test the authorisation roles of different users a lot, we created a function "Login as this user" that is placed on the employee detail form.
This spares us the detour via the login screen. Actually I got this idea from JIRA :)

login.png
login.png (7.97 KiB) Viewed 1589 times


When I showed the new function to the main admin of my customer, who also needs this a lot, she asked if it would be possible to launch a second instance of the application with that function.
That way she could stay inside her own instance with her user role and just quickly test another user role.

Is that somehow possible? Our current idea is to call the desktop button that starts the solution, but maybe it can be done even more elegant?

BTW, Gary coded that function with the help of application.setUserProperty(). That way we tell the solution with which user-id it should start on next automatic login.
And on login, we grab that information with application.getUserProperty().
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 8 guests