I have two accounts (one for admin rights), with these nominal DOORS login names: * TGI * TGI_ADM
When I login as TGI_ADM, the problem is that executing "print username()" only prints "TGI" instead of the expected "TGI_ADM". However "User u=find(); string name=u.name; print name" prints "TGI_ADM" as expected!
strathglass - Fri Feb 15 16:19:01 EST 2019 |
Re: username() not the same as User u.name??
"username()" returns the "System username" found on the Details tab of the Edit User properties sheet, of the current logged in user. This represents the computer login name associated with the DOORS account. In your example it appears that if you logged into the computer as "TGI" and then started DOORS, the name on the login dialog will be pre-populated with "TGI_ADM". (So long as TGI doesn't appear for any other doors user).
-Louie |
Re: username() not the same as User u.name?? llandale - Fri Feb 15 17:27:06 EST 2019
"username()" returns the "System username" found on the Details tab of the Edit User properties sheet, of the current logged in user. This represents the computer login name associated with the DOORS account. In your example it appears that if you logged into the computer as "TGI" and then started DOORS, the name on the login dialog will be pre-populated with "TGI_ADM". (So long as TGI doesn't appear for any other doors user).
-Louie doorsname() is what I wanted...thanks for clarifying! |