In this query, I can get an indented folder structure.......IF I run it in SQL Developer. In LR: no.
Does anyone know of something that will? If I have to run this for Owners, that means they can't and it ties up some of my time. I tried it under a WebReport and get the same.
select lpad('..', 2*level-1)||dt.name "Folder",
NVL((select to_char(sum(dv.datasize), '999,999,999,999,999') from dtreecore dta join dversdata dv on dta.dataid = dv.docid and dta.versionnum = dv.version where dt.dataid = dta.parentid), 0) "Bytes",
(select count(*) from dtreecore dtc where dtc.parentid = dt.dataid) "Docs",
sys_connect_by_path(dt.name, '\') "Path"
from dtreecore dt
where dt.subtype = 0 and dt.dataid in (select dtf.dataid from dtreeancestors dtan join dtreecore dtf on dtan.dataid = dtf.dataid and dtf.subtype = 0 where dtan.ancestorid = %2)
start with dt.dataid = %1 connect by dt.parentid = prior dt.dataid
Order by "Path"