Select to view content in your preferred language

Hyperlink via virtual directory to web application?

3112
4
Jump to solution
12-05-2012 11:36 AM
MatthewFletcher
Regular Contributor
I'm hoping that someone might have an idea how to go about this.

I have a report built in SQL Server 2008 R2 Reporting Services and am trying to link to the report via a pop up in the Flex Viewer application.  I understand that when I hyperlink to files via the Flex Viewer application, I need to use a Virtual Directory which points to the physical location of the file.  The problem is that the 2008 R2 Reporting Services don't have a physical location that I can direct a virtual directory.

I have the hyperlink setup correctly in my popup, if I copy and paste it from the pop up window into a web browser, the report will open.  If I click the hyperlink directly in the popup, the web address will open, but a few extra characters get thrown into the address, erroring it out.  It makes me think that setting up virtual directory to the location would fix things.

To review, I'm trying to create a Virtual Directory to a web application that doesn't physically exist.  ie. I'm trying to link to "http://servername/ReportServer/Pages/ReportViewer.aspx?%2fEnvironmental%2fPoint+Search&rs:Command=Re..." vs. C:\ReportServer\Pages\ReportViewer . . . .

Does anyone know how to create a Virtual Directory to a web application?

Thank,
Matt
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Matt,

   So the deal is that the PopUp is trying to encode the url that has already been encoded. To fix this just make the field or the description contain the un-encoded url:

http://servername/ReportServer/Pages/ReportViewer.aspx?/Environmental/HMR+Search&rs:Command=Render&SiteID=SW-30&MineName=Coal  Mine

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Matt,

   What does the (exact) address that works when you paste it into a web browser look like?
0 Kudos
MatthewFletcher
Regular Contributor
Robert,
I'll try and put these side by side for comparison.  First,the one that works when pasted into a browser, second, the one that the Flex application tries to go to.  The differences are in bold. 

"http://servername/ReportServer/Pages/ReportViewer.aspx?%2fEnvironmental%2fHMR+Search&rs:Command=Rend... Mine"

"http://servername/ReportServer/Pages/ReportViewer.aspx?%252fEnvironmental%252fHMR+Search&rs:Command=Render&SiteID=SW-30&MineName=Coal%20Mine"


Matt
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Matt,

   So the deal is that the PopUp is trying to encode the url that has already been encoded. To fix this just make the field or the description contain the un-encoded url:

http://servername/ReportServer/Pages/ReportViewer.aspx?/Environmental/HMR+Search&rs:Command=Render&SiteID=SW-30&MineName=Coal  Mine
0 Kudos
MatthewFletcher
Regular Contributor
Robert,
That worked.  I had tried using a field containing the link (of the bad address) before, but never thought about changing the "%2f" to "/". 

Thanks for the insight!

Matt
0 Kudos