sql-server - 如何将参数中的 SSRS 报告路径发送到存储过程?
问题描述
我有多个部门需要访问同一份报告。每个部门都应该看到他们的相关数据,而不是其他部门的数据。
为此,我创建了 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 个报告
推荐阅读
- android - 安卓 GPS 问题
- python - 如何在 Sagemath 中旋转和定位轴标签
- python - 两个事件之间的 Epoch EEG 数据,而不是 min_max 秒?
- java - Java 递归:如何在一行中用逗号分隔 1..n 时避免最后一个逗号。查看里面的完整任务描述
- c# - 一对多验证竞争条件
- tags - shopify如何在存储为“key:value”的标签中搜索值
- visual-studio - Visual Studio 2019 V16.9.0 发布后不再启动目标 URL
- reporting-services - 总和查找值 SSRS
- python - Numpy向量和矩阵加法
- javascript - 如何在 Quasar Vuex 模块中访问 ssrContext 和 Cookie?