Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services 如何在新窗口中添加子报表?_Reporting Services_Charts - Fatal编程技术网

Reporting services 如何在新窗口中添加子报表?

Reporting services 如何在新窗口中添加子报表?,reporting-services,charts,Reporting Services,Charts,我正在开发一个带有图表的SSRS 2008 R2 RDL。目前,我在这个图表中内置了一个子报表,如果他们点击饼图,它会直接进入这个子报表。它当前通过“转到报告”配置为系列上的操作 但是,我的客户希望它打开一个新的浏览器窗口,这样他们就可以看到原始图表,而不必重新运行我的报告。此外,此子报表需要几个输入参数。我尝试了“转到URL”操作链接,并在那里输入了URL。但这不起作用,因为我无法传递输入参数。我该怎么做 此子报表采用多个参数。我将其配置为: ="javascript:void(window.

我正在开发一个带有图表的SSRS 2008 R2 RDL。目前,我在这个图表中内置了一个子报表,如果他们点击饼图,它会直接进入这个子报表。它当前通过“转到报告”配置为系列上的操作

但是,我的客户希望它打开一个新的浏览器窗口,这样他们就可以看到原始图表,而不必重新运行我的报告。此外,此子报表需要几个输入参数。我尝试了“转到URL”操作链接,并在那里输入了URL。但这不起作用,因为我无法传递输入参数。我该怎么做

此子报表采用多个参数。我将其配置为:

="javascript:void(window.open('http://evolvdb/Reports/Pages/Report.aspx?ItemPath=%2fIncoming%2fCensus_by_Date_Range2_Subreport&rs:Command=Render&startdate="+Parameters!startdate.Value+"&enddate="+Parameters!enddate.Value+"&region="+Parameters!region.Value+"&state="+Parameters!state.Value+"&office="+Parameters!office.Value+"&status="+Parameters!status.Value+"&program_hyperlink="+Fields!program_code.Value+"&funding_source_param="+Parameters!funding_source.Value+"'))"
但当我尝试单击此子报表时,它是不可单击的

我也试过了,但超过了255个字符的计数:

="javascript:void(window.open('http://evolvdb/Reports/Pages/Report.aspx?ItemPath=%2fIncoming%2fCensus_by_Date_Range2_Subreport&rs:Command=Render&startdate=" & Parameters!startdate.Value & "&enddate=" & Parameters!enddate.Value & "&region=" & Parameters!region.Value & "&state=" & Parameters!state.Value & "&office=" & Parameters!office.Value & "&status=" & Parameters!status.Value & "&program_hyperlink=" & Fields!program_code.Value & "&funding_source_param=" & Parameters!funding_source.Value & "'))"
我也试过了,但也无法点击:

="javascript:void(window.open('http://evolvdb/Reports/Pages/Report.aspx?ItemPath=%2fIncoming%2fCensus_by_Date_Range2_Subreport&rs:Command=Render
&startdate="+Parameters!startdate.Value+"
&enddate="+Parameters!enddate.Value+"
&region="+Parameters!region.Value+"
&state="+Parameters!state.Value+"
&office="+Parameters!office.Value+"
&status="+Parameters!status.Value+"
&program_hyperlink="+Fields!program_code.Value+"
&funding_source_param="+Parameters!funding_source.Value+"'))"

我正在查看您尝试的最后一个代码段,下面是我的反馈:

  • 报告路径看起来不正确。格式应为
    http://evolvdb/ReportServer/Path/To/Report&Parameters=XX
  • 您不能将SSR中的字符串与
    +
    连接起来,需要使用
    &
例如:

="javascript:void(window.open('http://evolvdb/ReportServer/Incoming%2fCensus_by_Date_Range2_Subreport&rs:Command=Render
&startdate=" & Parameters!startdate.Value & "
&enddate=" & Parameters!enddate.Value & "
&region=" & Parameters!region.Value & "
&state=" & Parameters!state.Value & "
&office=" & Parameters!office.Value & "
&status=" & Parameters!status.Value & "
&program_hyperlink=" & Fields!program_code.Value & "
&funding_source_param=" & Parameters!funding_source.Value & "'))"

我对创建SSRS链接的一般建议是使用浏览器,从零编程开始。确保报告路径正确,然后手动添加参数并确保报告正确接受参数值。一旦你有了一个有效的URL示例,在你的报告中创建一个文本框,它会弹出你试图创建的URL字符串。这是一种确保获得预期输出的简单方法,您可以将其与第一步中手动创建的URL进行比较。最后,将完成的表达式放入“转到URL”操作中,您很可能会有一个按预期工作的链接。

Hi,有任何参数是多值的吗?那么url看起来就不一样了。不,没有一个参数是多值的。