[英]Linking URL to SSRS field, no data on report server
My report has a link to a resource I loaded to the report server. 我的报告具有指向我加载到报告服务器的资源的链接。 I've used some very helpful previous posts to get to this code which tests just fine:
我以前使用过一些非常有用的文章来获得可以正常测试的代码:
Code1 代码1
javascript:void(window.open('http://reportserverlink/test.pdf ','_blank'))
I have the text box properties -> actions -> go to URL configured. 我有文本框属性->操作->转到配置的URL。 The text box holds a field from my dataset and I want to bring up the corresponding PDF when clicked.
文本框包含我的数据集中的一个字段,单击后我想调出相应的PDF。 Here is the code:
这是代码:
Code2 代码2
javascript:void(window.open('http://reportserverlink/" & Fields!PDFFileName.Value & ','_blank'))
However, when I deploy the report with code2, the report has no data. 但是,当我使用code2部署报告时,报告中没有数据。 The header/footer works, the column headers are there;
页眉/页脚有效,列标题在那里; just no data.
只是没有数据。 The report preview in BIDS gives the appearance it is working.
BIDS中的报告预览提供了它正在工作的外观。
Any thoughts? 有什么想法吗? And thank you!
谢谢你!
As I can see the final parameters in the url are not being concatenated properly. 如我所见,URL中的最终参数未正确连接。
' http://reportserverlink/ " & Fields!PDFFileName.Value & ' “ http:// reportserverlink / ”和字段!PDFFileName.Value和“
If you are trying to concatenate a value inside a variable inside a String you should try something like ' http://reportserverlink/ ?' 如果要在字符串中的变量内串联一个值,则应尝试类似“ http:// reportserverlink / ?”的操作 + foo1 + '&' + foo2
+ foo1 +'&'+ foo2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.