Start local Excel file from tm1

Post Reply
User avatar
nlashin
Posts: 28
Joined: Tue Jun 18, 2013 10:24 am
OLAP Product: TM1
Version: Planning Analytics 2.0
Excel Version: 365

Start local Excel file from tm1

Post by nlashin »

Hello, colleagues!

I faced with situation when i need to start Excel File from tm1. For example, in drill process from cell which contain excel file path. First of all, i need to open excel.exe and then set file path as parameter by using ExecuteCommand function. But the problem is that i need start local Excel.exe, but not at the server.

Maybe you have some ideas how we can solve this problem.

Best regards, Lashin Nikita
Russia, Moscow
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: Start local Excel file from tm1

Post by declanr »

Don't see you being able to do this in a drill process since the process will always be running on the server with no knowledge of which PC it was initiated from.

You haven't specified which of the many TM1 clients you are using in this scenario?
Declan Rodger
User avatar
nlashin
Posts: 28
Joined: Tue Jun 18, 2013 10:24 am
OLAP Product: TM1
Version: Planning Analytics 2.0
Excel Version: 365

Re: Start local Excel file from tm1

Post by nlashin »

It will be nice if it will work in TM1Web.
Maybe tm1 have other possibilities to open excel file which based at the server. (in excel)
lotsaram
MVP
Posts: 3705
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Start local Excel file from tm1

Post by lotsaram »

I don't know what you need a drill process for. All you need to do is present a DBRW cell containing a string value hat is a hyperlink or UNC path to the Excel file. As long as TM1 Web sees the hyperlink as being an external reference then excel will launch automatically and the file will open in Excel. I have used this a lot in the past to present downloadable, pre-saved, canned reports to users via TM1 web.

If the hyperlink is internal (within the tm1web virtual directory or whatever the tomcat equivalent name for that is) then TM1 web will not launch Excel but will open the url as a websheet.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
User avatar
nlashin
Posts: 28
Joined: Tue Jun 18, 2013 10:24 am
OLAP Product: TM1
Version: Planning Analytics 2.0
Excel Version: 365

Re: Start local Excel file from tm1

Post by nlashin »

Please, could you explain how to convert a value in the link and go to Excel. The screenshot below:
121.JPG
121.JPG (82.93 KiB) Viewed 5131 times
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: Start local Excel file from tm1

Post by declanr »

=Hyperlink(link,Name)

From memory though putting a hyperlink formula inside an active form can produce sketchy results depending what version of TM1 you are on.
Declan Rodger
User avatar
nlashin
Posts: 28
Joined: Tue Jun 18, 2013 10:24 am
OLAP Product: TM1
Version: Planning Analytics 2.0
Excel Version: 365

Re: Start local Excel file from tm1

Post by nlashin »

Works fine. Thanks!
Post Reply