find a name of the client in process

Post Reply
borisslu
Posts: 15
Joined: Sun Jul 13, 2008 6:49 am

find a name of the client in process

Post by borisslu »

Hi,

I want to find a name of the client which runs this process , can someone help me ?
Is it possible to do it in turbo ?
Boris
kpk
MVP
Posts: 214
Joined: Tue Nov 11, 2008 11:57 pm
OLAP Product: TM1, CX
Version: TM1 7x 8x 9x 10x CX 9.5 10.1
Excel Version: XP 2003 2007 2010
Location: Hungary

Re: find a name of the client in process

Post by kpk »

Hello,

From version 9.? you can use TM1User.

Regards,

Peter

TM1User()
This function returns a string giving the current TM1Client. When executed in a process that the
user is running directly, it will return the users TM1 client name. When executed in a chore that
the user runs directly, it will also return the users TM1 client name.
If run from a scheduled chore, it will return a name in the form R*<chore name>, for example,
R*UpdateRegionDimension.
Syntax
TM1User()
Best Regards,
Peter
borisslu
Posts: 15
Joined: Sun Jul 13, 2008 6:49 am

Re: find a name of the client in process

Post by borisslu »

thanks,

and for version 8.?

thanks
kpk
MVP
Posts: 214
Joined: Tue Nov 11, 2008 11:57 pm
OLAP Product: TM1, CX
Version: TM1 7x 8x 9x 10x CX 9.5 10.1
Excel Version: XP 2003 2007 2010
Location: Hungary

Re: find a name of the client in process

Post by kpk »

Hi,

Unfortunately this function was introduced in one of the 9 versions.
You can define a parameter on the advanced tab and ask your user to complete it at the start of the process. It will be not a fool proof solution.

Regards,

Peter
Best Regards,
Peter
User avatar
paulsimon
MVP
Posts: 808
Joined: Sat Sep 03, 2011 11:10 pm
OLAP Product: TM1
Version: PA 2.0.5
Excel Version: 2016
Contact:

Re: find a name of the client in process

Post by paulsimon »

Hi

You could try the attached. A typical call looks like this:

StringSessionVariable('svWhoAmI');
ExecuteProcess('zTD_Security_Get_User_Name_svWhoAmI') ;
vUser = svWhoAmI ;

It uses MDX to get the name of the current user, which I think was introduced a little earlier than the TM1UserName function in TI, so it may work in your version.

Regards


Paul Simon
Attachments
zTD_Security_Get_User_Name_svWhoAmI.zip
(1.1 KiB) Downloaded 325 times
borisslu
Posts: 15
Joined: Sun Jul 13, 2008 6:49 am

Re: find a name of the client in process

Post by borisslu »

thanks you !!!

it is work!!
have a nice day

Boris
Post Reply