Page 1 of 1

TM1 API Code examples

Posted: Thu Feb 05, 2009 3:19 pm
by att
Anybody knows where I can find code samples for TM1 API (9.1.3 Windows 64 bit) - ideally for Visual Basic? I checked documentation and it says:
Sample Code for the TM1 API

We provide sample code for both Visual Basic and C. The samples are located in the TM1 API installation directory.
I could not find this directory at all - not on source CD, not on the server where TM1 is installed. What is exact name of the directory and where should I look for it?

Has anybody tried to connect to TM1 from the SQL Server Integration Services?

Re: TM1 API Code examples

Posted: Thu Feb 05, 2009 4:10 pm
by Guillaume Galtier
Hi att,

There is some samples into the "TM1 API Guide", provided with the TM1 documentation.

If you don't have this guide with your TM1 documentation, you can download it from the Cognos site.

I hope this helps. ;)

Guillaume

Re: TM1 API Code examples

Posted: Thu Feb 05, 2009 4:14 pm
by Martin Ryan
att wrote: I could not find this directory at all - not on source CD, not on the server where TM1 is installed. What is exact name of the directory and where should I look for it?
If it's not there then the installer probably choose not to install it for some reason. As Guillaume says you can have a look around on the IBM site, or you can do a re-install and get the samples put on. You could even it do it on another computer, then copy the API examples, then uninstall.

Martin

Re: TM1 API Code examples

Posted: Thu Feb 05, 2009 4:23 pm
by Renaud MARTIAL
Hello,

you should have some samples located in the '<TM1 installation directory>\API\TM1API\SampleCode\' directory.
In my configuration, I've got code for C++, VB and Java APIs.

Regards,

Renaud.

Re: TM1 API Code examples

Posted: Thu Feb 05, 2009 6:29 pm
by att
Renaud MARTIAL wrote:Hello,

you should have some samples located in the '<TM1 installation directory>\API\TM1API\SampleCode\' directory.
In my configuration, I've got code for C++, VB and Java APIs.

Regards,

Renaud.
I double-checked - there is no such directory on my server. Can it be because we are using 64 bit version?

Re: TM1 API Code examples

Posted: Thu Feb 05, 2009 6:51 pm
by ScottW
The VB API examples are all really old. For anything in the example set you would be much better off going with TI. But I guess it's a starting point.