I have a situation where my best solution is to capture the full Referrer URL in my SSRS 2005 Report to facilitate "Back" links within my reports. I have looked but don't see a way to capture this information natively in a report.
Any help is appreciated.
We don't expose the referrer URL to the processing engine, so there is no way to embed it into the report. In many cases, there is no referrer URL (consider all of the cases where you are not rendering to HTML).
What is wrong with the browser's back button?
|||John Gallardo - MSFT wrote: What is wrong with the browser's back button?
That is the same question I posed, but we are using a series of drill through reports and some reports have many pages. When clicking through from one report to another and they click the Back button, it returns them to the first page of the previous report. This can get tedious if they are looking at the detail on several rows from the first report.
Therefore, if I could capture the full URL from the previous report, I would be able to return them to the previous report with a link and they would be on the same page.
Otherwise, it will require trapping the full URL in the code environment which will not be easy to deal with on an infinity basis. I want to have unlimited drill throughs and unlimited Back links, maintining state.
If you have any ideas, I appreciate it.
|||How are you displaying the report? If you are using the HTML viewer control then it should be doing this already.|||It would make my life easier if I had an ASP.NET solution using report viewer but that is not my situation. My reports are being viewed through JSP pages where the code is posting the request URL string to report server and integrating the returning HTML into the web page. It has posed many challenges, but this is the first one we haven't found a solution for.
If it can't be done, just let me know and I'll deliver the news. I know the JSP code environment should be able to capture this info, and if nothing native will work, I'll probalby setup a named variable placedholder in the Report Server reports that the JSP code will replace with the URL. That might work, but I'd rather keep it in the reports so it works when we internally browse to it directly through the report server web as well.
|||Yes, since you are not directly using the viewer control you will probably have to roll your own solution into your application.|||Thanks for your help John. For the benefit of anyone else in the same boat, the reason the back button doesn't work for me is that it is running under an SSL so the pages aren't cached locally. It works fine if I try it from a standard HTTP insecure address. For those browsing on the company intranet it should be ok.|||Hey,Can you please share the information on how you are trying to integrate JSP and SSRS 2005. That will be helpful.
Regards,
Raj
No comments:
Post a Comment