![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: how to get current user? Topic Summary: Created On: 8-May-2008 08:36 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: ups, doorsname() is the function to go for | |
![]() |
|
hi , all.
I want to know , now who use doors. Is there some dxl code ? Please help,thanks. |
|
![]() |
|
![]() |
|
Hi,
I'm not sure if DOORS provides a convinient way but you can always use lmutils.exe to get a list of logged in users. "C:\Program Files\Telelogic\Doors 7.1\flex\lmutil.exe lmstat -f DOORS" Cheers, Frank ------------------------- Frank Jensen TRW Automotive frank.jensenREMOVE_ME@trw.com |
|
![]() |
|
![]() |
|
hi, thanks.
Maybe , I do not say the detail that I want to do .sorry. I write a dxl script , it exec some functions . but I want only some people to use it, others can not .. I want to know , now who use the doors, and I judge he can use the dxl or not. thanks. |
|
![]() |
|
![]() |
|
oh, sorry.
you can use "username()" to get the currently logged in user. ------------------------- Frank Jensen TRW Automotive frank.jensenREMOVE_ME@trw.com |
|
![]() |
|
![]() |
|
ups, doorsname() is the function to go for
------------------------- Frank Jensen TRW Automotive frank.jensenREMOVE_ME@trw.com |
|
![]() |
|
![]() |
|
Hi chunjia,
I would recommend to use a group to define the users who are allowed to use the script. Then you may use something like this for checking: const string szGroupName = "allowed Users"; User u = find (); if (existsGroup szGroupName) { Group g = find (szGroupName); if (member (g, u)) { // place your code here ...... } else infoBox "You are not allowed to run this script!" } else infoBox "Group not found ...!\n" Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
how to get current user?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.