3
I’m having trouble creating a tree page on oracle Apex.
I created the page, but the Apex displays the results, but not grouped by the specified node. It is a paid bond ratio. I would like to create the Vendor node and below it the related titles.
I created a view to find titles:
CREATE OR REPLACE VIEW V_TIT_FORN AS
SELECT P.NOME, T.CODIGO, T.CODFORNEC, T.PARCELA, T.DTVENCTO, T.VLRPARCELA, T.VLRPAGO
FROM PESSOA P
, TITULO T
WHERE P.CODIGO = T.CODFORNEC
AND T.TPTIT = 0;
And the page creation select looked like this:
select case when connect_by_isleaf = 1 then 0
when level = 1 then 1
else -1
end as status,
level,
"NOME" as title,
null as icon,
"CODIGO" as value,
null as tooltip,
null as link
from "#OWNER#"."V_TIT_FORN"
where DTVENCTO > TO_DATE('01/03/2016','DD/MM/RRRR')
start with "CODFORNEC" is NOT null
connect by prior "CODIGO" = "CODFORNEC"
order siblings by "NOME"
Notice I put it on start with as NOT NULL. If
start with "CODFORNEC" is NOT null.
– Marco Souza
Search a little bit about the with block using search breadth first. Maybe that’s what you need
– jefissu