Change User without call the login Panel

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
AMRPatricio
Posts:61
Joined: Mon Dec 12, 2016 4:43 pm

Change User without call the login Panel

Post by AMRPatricio »

Hi guys,
any suggestions about the following: I want to change automatically the current active user (if some conditions aplly). Is it correct to user setUserId? That is what I am trying but just noticed the UserName on my running UI remains the same.

Thanks in advance.
Antonio

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: Change User without call the login Panel

Post by fmulder »

The correct sequence is :

// Change user
setUserId( uUser, strWachtwoord );

// Set user name so that you see it in the title
dpSet( "_Ui_" + myManNum() + ".UserName", strGebruiker );

share the fun
Frenk Mulder

2 posts • Page 1 of 1