如何将参数中的 SSRS 报告路径发送到存储过程?
How to send SSRS Report Path in a parameter to the Stored Procedure?
我有多个部门需要访问同一份报告。
每个部门应该看到他们的相关数据,而不是其他部门的数据。
为此,我创建了 4 个报告,每个报告都有发送到 SP 的内部参数,因此它只检索相关记录。
我认为这是低效的,所以我想也许我可以将报告在 SSRS 中存在的路径发送给 SP,例如
Home > Management Reports > HR
Home > Management Reports > Finance
Home > Management Reports > Legal
从这个地址我可以告诉部门
有什么方法可以获取 SSRS 中的当前文件夹并将其作为参数发送?
1. create a parameter call it department, hide this parameter
2. accessing the ssrs reports give them the URL with the parameter on it
reporturl&rs:Command=Render&Department=HR
这样您将只使用 1 个报告
我有多个部门需要访问同一份报告。 每个部门应该看到他们的相关数据,而不是其他部门的数据。
为此,我创建了 4 个报告,每个报告都有发送到 SP 的内部参数,因此它只检索相关记录。
我认为这是低效的,所以我想也许我可以将报告在 SSRS 中存在的路径发送给 SP,例如
Home > Management Reports > HR
Home > Management Reports > Finance
Home > Management Reports > Legal
从这个地址我可以告诉部门
有什么方法可以获取 SSRS 中的当前文件夹并将其作为参数发送?
1. create a parameter call it department, hide this parameter
2. accessing the ssrs reports give them the URL with the parameter on it
reporturl&rs:Command=Render&Department=HR
这样您将只使用 1 个报告