This Oracle-specific function definition extracts a specified Assoc value from DTree.ExtendedData. It searches for '<valuekey>'='<value>' and returns <value>.
To use this function, you can call it from within a SELECT statement, passing the parameters it wants. This example call returns all of the SQL query definitions that are embedded inside a LiveReport definition in DTree.ExtendedData.
select name, ed_value( dataid, 'sql' ) "SQL Query"
from dtree
where dataid in
(select dataid
start with dataid=26343
connect by prior dataid = parentid) and
%1 (Filter LiveReport)
order by name