Page 1 of 1

Tm1 Action button - call Macro

Posted: Tue Sep 24, 2019 1:26 pm
by kavitha2002
Hello Everyone,

I have worked on basic TM1 Action button which calls the TI process.

I have got a below report to develop
sample_xlsm.png
sample_xlsm.png (3.85 KiB) Viewed 10022 times
but here 'Actuals' is textbox and it calls the macro which in turn call Application.Run "ExecuteActionButton", "2325345". All the menu icons are named as TM1Button. I cant see much info from this report.

Its something like calling the macro which in turn calls the TI process?? How can I develop the report like this? Is it Possible?

Thanks in advance for all who spend time on this.

Re: Tm1 Action button - call Macro

Posted: Wed Sep 25, 2019 8:13 am
by HighKeys
Hola!

As i know u have to use "Action Buttons" from TM1 to trigger TI Processes.
TI Excel.PNG
TI Excel.PNG (31.95 KiB) Viewed 9990 times
BR

Re: Tm1 Action button - call Macro

Posted: Thu Sep 26, 2019 6:24 am
by kavitha2002
Yes I know. Thanks.

Is there other possibility of calling the macro via Tm1 Action button?

Re: Tm1 Action button - call Macro

Posted: Thu Sep 26, 2019 9:12 am
by orlando
kavitha2002 wrote: Thu Sep 26, 2019 6:24 am Yes I know. Thanks.

Is there other possibility of calling the macro via Tm1 Action button?
Nope. I don't think there is any supported way to do so.

Re: Tm1 Action button - call Macro

Posted: Thu Sep 26, 2019 9:20 am
by Wim Gielis
What do you want to do ? Using a shape or textbox instead of an action button, and then the consequence is that you can't easily run TI processes ?

Re: Tm1 Action button - call Macro

Posted: Thu Sep 26, 2019 3:01 pm
by kavitha2002
Wim Gielis wrote: Thu Sep 26, 2019 9:20 am What do you want to do ? Using a shape or textbox instead of an action button, and then the consequence is that you can't easily run TI processes ?
yes, exactly. I would like to make a report with shapes or textboxes and call the TI process via macros. Above I have attached the sample report for reference.

Re: Tm1 Action button - call Macro

Posted: Thu Sep 26, 2019 3:12 pm
by Wim Gielis
In what client(s) should it work ?

Re: Tm1 Action button - call Macro

Posted: Fri Sep 27, 2019 6:53 am
by kavitha2002
It should work in excel (TM1 Perspectives).

Re: Tm1 Action button - call Macro

Posted: Thu Oct 03, 2019 4:06 pm
by Steve Rowe
If you are using PA for Excel then (your opening posts looks like PA for Excel but later you say Perspectives)

https://ibm.github.io/paxapi/#introduction

If you are using Perspectives then you can write calls using the old API but it is much much more involved. You may find some good material with some googluck but I don't think the code is widely shared due to the level of effort required to produce it.

Re: Tm1 Action button - call Macro

Posted: Fri Oct 11, 2019 11:06 am
by kavitha2002
Thanks for reply and suggestion.

Re: Tm1 Action button - call Macro

Posted: Fri Oct 11, 2019 1:40 pm
by tomok
Steve Rowe wrote: Thu Oct 03, 2019 4:06 pm IIf you are using Perspectives then you can write calls using the old API but it is much much more involved. You may find some good material with some googluck but I don't think the code is widely shared due to the level of effort required to produce it.
With all due respect this is a really bad idea if you care about the longevity of your solution. Once IBM kills the old API (and it's happening, only a question of when) then all your work will go down the toilet. Better to look for a solution using PAX action buttons or calling something in the REST API.