Page 1 of 1

TM1 Object dependency walker- get list of all dependent objects

Posted: Fri Jul 14, 2017 1:38 am
by 7Zark7
Hi Guys,

Is there a free tool available to get a list of dependencies ( i.e. TM1 objects ) that are dependent on what are you targeting?

For example target cube A , has dependent dimensions A, B, C and D, and also has a Rule file
This rule file also points to other cubes etc. I would like to grab these objects as well + other associated processes.

What I want to be able to do is pass in the name of cube for example then call this script and punch out a file with
a list of dependent objects and then call 7zip to target this file and zip up the objects.

Any ideas?

Cheers

Zark

Re: TM1 Object dependency walker- get list of all dependent objects

Posted: Fri Jul 14, 2017 3:20 am
by BariAbdul
I don't know how much it going to help you ,but worth having a look at this thread:
http://www.tm1forum.com/viewtopic.php?f ... ram#p58483 Thanks

Re: TM1 Object dependency walker- get list of all dependent objects

Posted: Fri Jul 14, 2017 10:48 am
by Drg
I do not think that there are any real means to track the following dependencies(With the exception of staff resources that are not represented in any SDK):
Cube A

Code: Select all

DB( 
DB('Get cube for rule feeders',!a,!b,!c) 
, !a 
,!b 
,!c 
, !d
, if(!a@='true'
                    ,'total'
                    ,'subtotal')
, SUBST(
             ATTRS( 'MEASURE' 
                         , !e 
                         , 
                         DB('Get attribute name'
                              ,!a
                              ,!b
                              ,!c) 
                        )
              , 4
              , LONG(
                          ATTRS( 'MEASURE' 
                                      , !e 
                                      , DB('Get attribute name'
                                             ,!a
                                             ,!b
                                             ,!c) 
                                      )
                           )  -4 
              )
);
It is clear that very few people in the life so silently return, but met similar designs or design with a large nesting if(if(...).....if(...)).

Re: TM1 Object dependency walker- get list of all dependent objects

Posted: Sun Jul 16, 2017 8:40 am
by 7Zark7
Thanks BariAbdul

Looks interesting. This might give me enough to work with. I suppose I better understand how perl works.

Cheers

Zark

Re: TM1 Object dependency walker- get list of all dependent objects

Posted: Tue Jul 25, 2017 7:20 pm
by tiagoblauth79
tm1server.log registers cube dependencies at server startup. It might help you.