Linking URL to SSRS field, no data on report server

断了今生、忘了曾经 提交于 2019-12-11 23:56:19

问题


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

javascript:void(window.open('http://reportserverlink/test.pdf ','_blank'))

I have the text box properties -> actions -> go to URL configured. The text box holds a field from my dataset and I want to bring up the corresponding PDF when clicked. Here is the code:

Code2

javascript:void(window.open('http://reportserverlink/" & Fields!PDFFileName.Value & ','_blank'))

However, when I deploy the report with code2, the report has no data. The header/footer works, the column headers are there; just no data. The report preview in BIDS gives the appearance it is working.

Any thoughts? And thank you!


回答1:


As I can see the final parameters in the url are not being concatenated properly.

'http://reportserverlink/" & Fields!PDFFileName.Value & '

If you are trying to concatenate a value inside a variable inside a String you should try something like 'http://reportserverlink/?' + foo1 + '&' + foo2



来源:https://stackoverflow.com/questions/24810803/linking-url-to-ssrs-field-no-data-on-report-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!