【问题标题】:Report Builder 3.0 Replace Function not working for SSRS Sharepoint Integrated Report报表生成器 3.0 替换功能不适用于 SSRS Sharepoint 集成报表
【发布时间】:2014-05-17 02:28:53
【问题描述】:

我有一个条形图,其中系列有一个操作“转到 URL”以转到详细报告。
动作的表达式是:

="http://servername/sites/testsite/Dashboards/TestDashboard/TestDetail.aspx?SelectedMonth=" + Replace(Parameters!DateCalendarYear.Value, "&", "%26") + "&SelectedCategory=" + Replace(Fields!Category.UniqueName, "&", "%26"))

当我在 SSRS Sharepoint 集成模式下运行报告时,它会生成 url,但不会将 & 替换为编码值 %26。我在一个在 SSRS 本机模式下运行的类似报告上对此进行了测试,它运行良好。

有人知道为什么替换功能不适用于在 SSRS 共享点集成模式下运行的报告吗?

在 SSRS Native 中生成的 URL(正常工作):

http://servername/sites/testsite/Dashboards/TestDashboard/TestDetail.aspx?SelectedMonth=%5BDate%5D.%5BCalendar%20Year%5D.%5BMonth%5D.%26%5B2014%5D%26%5B4%5D&SelectedCategory=%5BCategory%5D.%5BCategory%5D.%26%5B6%5D

在 SSRS Sharepoint 集成模式下生成的 URL(不起作用):

http://servername/sites/testsite/Dashboards/TestDashboard/TestDetail.aspx?SelectedMonth=%5BDate%5D.%5BCalendar%20Year%5D.%5BMonth%5D.&%5B2014%5D&%5B5%5D&SelectedCategory=%5BCategory%5D.%5BCategory%5D.&%5B3%5D

【问题讨论】:

  • 我认为 & 是一个红鲱鱼 - 你的 SSRS 原生 URL 包含多个 &。使用报告操作肯定比尝试构建 URL 更容易吗?
  • 感谢迈克的回复。使用 Go To Report 操作会更简单,但在这种情况下,用户希望能够单击图表中的条形并被带到另一个共享点页面,上面有各种报告,这些报告可能不是 SSRS 报告。
  • 刚把报表移到SSRS native的一个实例上就可以正常工作了,看来集成模式不支持SSRS的所有功能。

标签: reporting-services sharepoint-2013 reportbuilder3.0


【解决方案1】:

因为我打算在新标签中打开报告,所以在这里找到了解决方案:http://social.msdn.microsoft.com/Forums/en-US/6ca4b1d4-3a04-413b-bd31-856aac3d8a8c/how-to-open-url-in-new-tab-rather-than-new-window-in-ssrs-2008-r2?forum=sqlreportingservices

在生成url时对参数使用了javascript转义函数。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-04-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-06
    相关资源
    最近更新 更多