If you are unable to create a new account, please email support@bspsoftware.com

Author Topic: How to get Report path from content store tables....  (Read 66974 times)

Offline Grim

  • Honorary Master of IBM Links
  • Statesman
  • ******
  • Join Date: Nov 2011
  • Posts: 688
  • Forum Citizenship: +58/-7
Re: How to get Report path from content store tables....
« Reply #15 on: 29 Feb 2012 07:07:32 am »
Sir Grim,

I hereby bestow on you the title of Honorary Master of IBM Links. :)

Sweet!
"Honorary Master of IBM Links"- MFGF
Certified IBM C8 & C10 Admin, Gamer, Geek and all around nice guy.
<-Applaud if my rant helped! 8)

cccschip

  • Guest
Re: How to get Report path from content store tables....
« Reply #16 on: 28 Jun 2012 01:37:11 pm »
I believe this is the query (in Oracle) that was desired...

    select cmid, objname, SYS_CONNECT_BY_PATH(o.objname, ' > ') path
    from (
           select obj.CMID CMID, case when obj.cmid = obj.pcmid then null else obj.PCMID end PCMID, nm.name objname
           from CMOBJECTS obj inner join CMOBJNAMES nm on obj.cmid = nm.cmid
           where nm.isdefault = 1
         ) o
    where objname like '???'               -- <<<< Your object name here
    start with o.PCMID = 0
    connect by prior o.CMID = o.PCMID

michal

  • Guest
Re: How to get Report path from content store tables....
« Reply #17 on: 15 Feb 2013 08:34:46 am »
sorry to resurrect an old beast, but i'm curious

any way to get at the attached files discussed in this thread?  i cant seem to find them anymore :/
while the audit extension can be used, figuring out what reports in your portal are actually used or not is a chore.

how do i find what reports ARENT used anymore?

i find it rather disappointing that BI cant really audit itself very well.

edit : oooops, after logging in i was able to download the attachment.  sorry.!

Still, if anyone knows of a good way to audit unused reports / packages etc please share....
« Last Edit: 15 Feb 2013 08:38:21 am by michal »

mpradeep22

  • Guest
Re: How to get Report path from content store tables....
« Reply #18 on: 20 Nov 2013 08:18:07 am »
Thank you Riley for your valuable script. I was able to use it and extend it a bit more to get the report path.

I only used the select statement since I didn't want to create tables. The catch in the code though is that you will need to know the maximum folder level in your system. So for e.g. your public or private folder is level 1 and thereafter it increments for every folder level. Below is what I did after establishing that we have 10 levels of folder in our system.

You will have to filter out the report paths being null to get what you want. To expand the script's scope to even more levels just add additional levels to the the select, from and where clauses (the script is intiuitive for sql folks). Feel free to post if you have any questions!
* Report path.txt (7.42 kB - downloaded 80 times.)

thank you very much subash, for your valuable information..... it helps me alot...

can I get the user name of the particular report in the same query???

Thanks inadvance
« Last Edit: 20 Nov 2013 08:21:35 am by mpradeep22 »

riley.murphy

  • Guest
Re: How to get Report path from content store tables....
« Reply #19 on: 20 Nov 2013 09:06:27 am »
Are you asking about the report owner/creator?

mpradeep22

  • Guest
Re: How to get Report path from content store tables....
« Reply #20 on: 21 Nov 2013 07:51:07 am »
Are you asking about the report owner/creator?

Yes Riley..... exactly.

i need to include the owner of the report also into the same querey

Thanks in advance

stummala

  • Guest
Re: How to get Report path from content store tables....
« Reply #21 on: 19 Mar 2014 07:23:23 am »
I have added the package name and author name to the query.

Offline Ravisha

  • Community Leader
  • *****
  • Join Date: Feb 2014
  • Posts: 113
  • Forum Citizenship: +1/-0
Re: How to get Report path from content store tables....
« Reply #22 on: 16 Aug 2021 07:14:19 pm »
I have added the package name and author name to the query.

Why I'm not able to download the attached file?