简体   繁体   中英

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). 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

Update If I try to open with a right click on the link I get about:blank#blocked in the new window. 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. 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')) 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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