Page 1 of 1
How to check if a user is connected to TM1 server in Excel?
Posted: Thu Feb 24, 2011 6:31 pm
by mce
Hi,
In an Excel spreadsheet, using VB or Excel Macro code, how can we check if a user is connected to a TM1 server or not?
This is to avoid running n_disconnect or n_connect blindly without checking if the user is really connected or not.
Any help would be appreciated.
Regards
Re: How to check if a user is connected to TM1 server in Exc
Posted: Thu Feb 24, 2011 7:56 pm
by Martin Ryan
Re: How to check if a user is connected to TM1 server in Exc
Posted: Thu Feb 24, 2011 8:02 pm
by Alan Kirk
mce wrote:Hi,
In an Excel spreadsheet, using VB or Excel Macro code, how can we check if a user is connected to a TM1 server or not?
This is to avoid running n_disconnect or n_connect blindly without checking if the user is really connected or not.
Any help would be appreciated.
Regards
Another way is to just do a DBR to a cube that all users have access to. (Create one if you need to.) If it returns the expected value, they're connected.
Re: How to check if a user is connected to TM1 server in Exc
Posted: Thu Feb 24, 2011 9:30 pm
by Oratia623
I use the worksheet function: TM1User("ServerName"). If it returns a blank - then they are not connected.
Though I am not sure in what version this function was introduced (I am using TM19.5.1)
Re: How to check if a user is connected to TM1 server in Exc
Posted: Thu Feb 24, 2011 9:48 pm
by Alan Kirk
Oratia623 wrote:I use the worksheet function: TM1User("ServerName"). If it returns a blank - then they are not connected.
Though I am not sure in what version this function was introduced (I am using TM19.5.1)
9.1 SP2.
Re: How to check if a user is connected to TM1 server in Exc
Posted: Thu Feb 24, 2011 10:18 pm
by lotsaram
Wow that post was a blast from the past, shame there are no dates on the old Applix forum threads.