How do i stop display of the username of the previous user?

Forum to discuss the Web client version of Servoy.

How do i stop display of the username of the previous user?

Postby tommaher2k » Thu Mar 01, 2012 10:23 pm

Hi

When i launch the servoy client the username of the previously logged in user is displayed in the Login box.

How can i prevent this?


Regards

Tom
tommaher2k
 
Posts: 2
Joined: Thu Mar 01, 2012 10:15 pm

Re: How do i stop display of the username of the previous us

Postby logicimpresa » Fri Mar 02, 2012 3:01 pm

Modify the onShow method of login form with this:

Code: Select all
function onShow()
{
   onResize()   
   if (!vOwner) {
      vOwner = application.getUserProperty(application.getSolutionName() +'.ownername');
   }
   var userName = application.getUserProperty(application.getSolutionName() +'.username');
   if (userName)
   {
// Remark the line below
//      vUsername = userName;
      elements.fld_passWord.requestFocus(false);
      return;
   }
   elements.fld_userName.requestFocus(false);
}
Gianluca Zanini
Logic Impresa - Italy
SAN Partner
Best BAP development 2014
Eager Beaver 2013
Servoy Valued Professional 2012
User avatar
logicimpresa
 
Posts: 65
Joined: Sun May 01, 2011 3:58 pm
Location: Bernate Ticino (MI) - Italy

Re: How do i stop display of the username of the previous us

Postby tommaher2k » Mon Mar 05, 2012 6:30 pm

Hi Logicimpresa

Thanks for your response.

I will try it out.

Regards

Tom
tommaher2k
 
Posts: 2
Joined: Thu Mar 01, 2012 10:15 pm


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 8 guests