简体   繁体   English

使用 Javascript 在 ssrs 中创建 POP UP 子报告不起作用

[英]Using Javascript to create POP UP sub report in ssrs not working

Hi I have been using SSRS for 10 years now but have not had to use the Go to URL Action method to pass through a SSRS report and parameters for a while (2008R2).嗨,我已经使用 SSRS 10 年了,但有一段时间没有使用Go to URL Action 方法来传递 SSRS 报告和参数(2008R2)。 So the concepts could have changed etc.所以概念可能已经改变等等。

My full expression was based on various post like this one here and the question here but is not working.我的完整表达基于像这里这样的各种帖子和这里的问题但不起作用。

My full expression is我的完整表达是

="javascript:void(window.open(‘http://MyServer/ReportServer/Pages/ReportViewer.aspx?%2fMyFolderPath%2fMyReport&rs:Command=Render&DocEntry="& Fields!GrnDocEntry.Value & "&DocLineNum="& Fields!LineNum.Value &"&rc:Toolbar=false', null, 'width=795, height=490, status=no, toolbar=no, menubar=no, location=no'))"

of course I am working from home so had no one spot any typo for me so I have tried a simpler version of it as当然,我在家工作,所以没有人发现我有任何拼写错误,所以我尝试了一个更简单的版本

="javascript:void window.open (‘https://stackoverflow.com/questions/18003013/open-ssrs-url-in-new-window','_blank','resizeable=1,toolbar=0,status=0,menu=0,top=20,left=20,width=740,height=730')"

however neither are working and it is driving me nuts, so I have two questions但是两者都不起作用,这让我发疯,所以我有两个问题

  1. Is this still possible with modern browsers?这在现代浏览器中仍然可能吗? (just checking the obvious, if it is not possible is there a new workaround?) (只是检查显而易见的,如果不可能,是否有新的解决方法?)
  2. Can any one advise on the create JavaScript method任何人都可以就 create JavaScript 方法提出建议

Update If I try to open with a right click on the link I get about:blank#blocked in the new window.更新如果我尝试通过右键单击链接打开,我会在新窗口中获得 about:blank#blocked。 Is this a security setting local to my client?这是我的客户端本地的安全设置吗?

I can use the "Go to Report" function but it opens in the same window tab and when I return to the main report all the multi-parameters are reset to default, which will be frustrating for the users我可以使用“转到报告”功能,但它在同一个窗口选项卡中打开,当我返回主报告时,所有多参数都重置为默认值,这会让用户感到沮丧

I often get the URL from a database so I just check if the URL is empty but other than that I do nothing special.我经常从数据库中获取 URL,所以我只是检查 URL 是否为空,但除此之外我没有做任何特别的事情。 Here is the hyperlink expression I used in a report a few days ago.这是我前几天在一个报告中使用的超链接表达式。

= "javascript:void(window.open('" & IIF(LEN(TRIM(Fields!URL.Value)) > 0 , Fields!URL.Value , "") & "','_blank'))" 

As you can see it really does nothing and would return something like正如你所看到的,它真的什么都不做,并且会返回类似的东西

javascript:void(window.open('https://stackoverflow.com','_blank')) 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM