I have report as ubder
if object_id('DIXIT_DBR_IT001_REPORTLIST','P') is not null
drop procedure DIXIT_DBR_IT001_REPORTLIST
go
create procedure DIXIT_DBR_IT001_REPORTLIST
as
begin
select 'dbr.column.filter','name','text'; select 'dbr.column.filter','Parents','text'; select 'dbr.column.filter','proc_name','text';
WITH Hierarchy(ChildId, ChildName, mother_id, Parents) AS ( SELECT folder_id, Name, mother_id, CAST('' AS VARCHAR(MAX)) FROM mydbr_folders AS FirtGeneration WHERE mother_id IS NULL UNION ALL SELECT NextGeneration.folder_id, NextGeneration.Name, Parent.ChildId, CAST(CASE WHEN Parent.Parents = '' THEN(CAST(NextGeneration.Name AS VARCHAR(MAX))) ELSE(Parent.Parents + '/' + CAST(NextGeneration.Name AS VARCHAR(MAX))) END AS VARCHAR(MAX)) FROM mydbr_folders AS NextGeneration INNER JOIN Hierarchy AS Parent ON NextGeneration.mother_id = Parent.ChildId ) select a.report_id, a.name, a.proc_name, a.explanation, Hierarchy.Parents from mydbr_reports (nolock) a inner join Hierarchy on Hierarchy.ChildId = a.folder_id
end
go
I want to check if I can create facility that if user clicks on report list in this , the clicked report is opened