Page 1 of 1

TM1Hierarchy Java Example Wanted

Posted: Thu Mar 10, 2011 9:01 am
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

Re: TM1Hierarchy Java Example Wanted

Posted: Thu Mar 10, 2011 3:09 pm
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.

Re: TM1Hierarchy Java Example Wanted

Posted: Thu Mar 10, 2011 4:19 pm
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

Re: TM1Hierarchy Java Example Wanted

Posted: Thu Mar 10, 2011 6:53 pm
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.