TM1Hierarchy Java Example Wanted

Post Reply
TM1Newbie
Posts: 5
Joined: Sun Mar 06, 2011 11:56 am
OLAP Product: TM1
Version: 8.4
Excel Version: 11

TM1Hierarchy Java Example Wanted

Post by TM1Newbie »

Has anyone got an example I can have a look at.

I can connect to the cube and get dimensions back but completely at a loss on how to use the hierarchy class.

The API documentation does not make it particularly clear.

Further is there any Java code around that can help show how to use the TM1 API. I have googled all over the net and there is very little. Only looking to read from the cube, do not want to write to it.

Thanks
csjean
Posts: 40
Joined: Mon Mar 01, 2010 2:53 pm
OLAP Product: TM1
Version: 9.5 9.5.1 9.5.2
Excel Version: 2007

Re: TM1Hierarchy Java Example Wanted

Post by csjean »

TM1Newbie wrote: Further is there any Java code around that can help show how to use the TM1 API. I have googled all over the net and there is very little. Only looking to read from the cube, do not want to write to it.

Thanks
Hi,

There is very little code "floating" around.

There are some [small] classes example in :
<tm1 install dir>\API\TM1API\SampleCode\java

Besides that, I gess you'll have to do it the old fashionned way: trial and error. ;)

Hope this helps.
Cheers!

--
Claude-Sebastien Jean
Senior Consultant in Information Technology
Keyrus Canada
www.keyrus.ca
image2x
Posts: 125
Joined: Tue Jun 02, 2009 7:05 pm
OLAP Product: TM1, PAX, PAW, SPSS
Version: 2.0.916.10 on RHEL
Excel Version: 2016
Location: Minneapolis, MN

Re: TM1Hierarchy Java Example Wanted

Post by image2x »

This is the most comprehensive java api source code example I've come across:

http://ykud.com/blog/cognos/tm1-cognos/ ... tm1-models
Last edited by image2x on Fri Mar 11, 2011 3:42 pm, edited 1 time in total.
csjean
Posts: 40
Joined: Mon Mar 01, 2010 2:53 pm
OLAP Product: TM1
Version: 9.5 9.5.1 9.5.2
Excel Version: 2007

Re: TM1Hierarchy Java Example Wanted

Post by csjean »

image2x wrote:This is most comprehensive java api source code example I've come across:

http://ykud.com/blog/cognos/tm1-cognos/ ... tm1-models

Cool! It looks like a very promising tool.

Thanks.
Cheers!

--
Claude-Sebastien Jean
Senior Consultant in Information Technology
Keyrus Canada
www.keyrus.ca
Post Reply