How to force user to connect to TM1 using Excel macro?

Post Reply
User avatar
mce
Community Contributor
Posts: 352
Joined: Tue Jul 20, 2010 5:01 pm
OLAP Product: Cognos TM1
Version: Planning Analytics Local 2.0.x
Excel Version: 2013 2016
Location: Istanbul, Turkey

How to force user to connect to TM1 using Excel macro?

Post by mce »

Hi,

When you open Excel, how do we force the user to log on to a TM1 server?
In server explorer, when you double click on a server name, then it prompts the user name and password.
I want to trigger this pop up box to appear when Excel opens or when users presses a button.
Any help would be appreciated.

Regards,
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: How to force user to connect to TM1 using Excel macro?

Post by lotsaram »

To invoke the Perspectives dialog I don't know of any other method other than using sendkeys (which I wouldn't recommend). Much better to roll your own dialog IMO.
ajain86
Community Contributor
Posts: 132
Joined: Thu Oct 15, 2009 7:45 pm
OLAP Product: TM1
Version: 9.4.1 9.5 9.5.1
Excel Version: 2003 2007

Re: How to force user to connect to TM1 using Excel macro?

Post by ajain86 »

never tried this but....

how about creating a custom add-in that you would tell the users to add to excel with its only purpose to pop up the tm1 connect dialog box when excel open.
Ankur Jain
MSidat
Community Contributor
Posts: 110
Joined: Thu Aug 26, 2010 7:41 am
OLAP Product: TM1, PA
Version: PAL 2.0.8
Excel Version: 2016
Location: North West England

Re: How to force user to connect to TM1 using Excel macro?

Post by MSidat »

Aye. The custom add in option works a treat.

Which also means you can handle incorrect passwords etc more effectively. We have it working here.
Always Open to Opportunities
User avatar
mce
Community Contributor
Posts: 352
Joined: Tue Jul 20, 2010 5:01 pm
OLAP Product: Cognos TM1
Version: Planning Analytics Local 2.0.x
Excel Version: 2013 2016
Location: Istanbul, Turkey

Re: How to force user to connect to TM1 using Excel macro?

Post by mce »

In our security model, when double clicked in server name in server explorer, it does not open the standard TM1 user and password prompt, it opens a web page (of the authentication provider) and then you enter your user name and password in this page to authenticate to TM1 through Cognos 8. Therefore I cannot pick user and password in a custom pop up and pass this to TM1 as N_connect does not work with Cognos 8 security.
Post Reply