Page 1 of 1

find a name of the client in process

Posted: Tue Feb 09, 2010 7:05 am
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

Re: find a name of the client in process

Posted: Tue Feb 09, 2010 8:34 am
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()

Re: find a name of the client in process

Posted: Tue Feb 09, 2010 9:39 am
by borisslu
thanks,

and for version 8.?

thanks

Re: find a name of the client in process

Posted: Tue Feb 09, 2010 10:21 am
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

Re: find a name of the client in process

Posted: Tue Feb 09, 2010 12:40 pm
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

Re: find a name of the client in process

Posted: Thu Feb 11, 2010 1:59 pm
by borisslu
thanks you !!!

it is work!!
have a nice day

Boris