简体   繁体   English

SSRS:网址中未显示参数

[英]SSRS: parameter not showing in url

In my tablix, my textbox has a custom expression. 在我的tablix中,我的文本框有一个自定义表达式。 It is basically a URL: 它基本上是一个URL:

=iif(Fields!permitNumber.Value="","<span style=visibility: hidden></span>","<a href=http://server/ReportServer/Pages/ReportViewer.aspx?/Reporting/Detailed&paramNumber=" & Fields!Number.Value & ">" & Fields!Number.Value & "</a>")

It is showing up properly as a URL but for some reason, the link shows everything except the paramNumber(or the equal sign). 它正确显示为URL,但是由于某种原因,该链接显示了除paramNumber(或等号)之外的所有内容。 So I tried to include it manually ..Detailed&paramNumber=ABC123 and still does not show the parameter. 因此,我尝试手动添加它。.Detailed&paramNumber = ABC123,但仍然不显示该参数。 So I thought maybe it's an URL Encoding issue so changed the equal sign to: 因此,我认为可能是URL编码问题,因此将等号更改为:

paramNumber%3D" & Fields!Number.Value & ">"

Now the parameter shows but the %3D fails to load the report. 现在,该参数已显示,但%3D无法加载报告。 If I change %3D to = in the browser, it loads fine! 如果我在浏览器中将%3D更改为=,它将正常加载! What is the trick to make this thing include "=" and parameter and why does it stop at the equal sign? 使事物包含“ =”和参数的诀窍是什么,为什么它停在等号?

BTW, why I am doing it this way? 顺便说一句,为什么我要这样做呢? Action, Go to report allows me to go to a report but it creates a link even when there is no data(I don't want uses to accidentally click this link!). 动作,转到报告允许我转到报告,但是即使没有数据,它也创建了一个链接(我不想使用它来意外单击此链接!)。 Trying to hide this link(the textbox) unexpectedly hides the border as well. 试图隐藏此链接(文本框)也意外地隐藏了边框。 Haven't figured out a way around this. 还没有想办法解决这个问题。 One post suggests inserting a rectangle and a textbox but the rectangle size does not look to be dynamic scale(haven't really tested). 一篇文章建议插入一个矩形和一个文本框,但是矩形的大小看起来不是动态比例(尚未经过实际测试)。

Nevermind, I was able to create a placeholder, Action = Go to Url, put the link and parameter in there. 没关系,我能够创建一个占位符,Action = Go to Url,在其中放置链接和参数。 Solved. 解决了。 Here the parameter shows up just fine. 这里的参数显示很好。 So apparently, the equal was being interpreted weirdly. 因此,很显然,对平等的解释很奇怪。

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

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