简体   繁体   English

使用SSRS中传递的查询字符串值设置SSRS报告参数值

[英]Set SSRS Report Parameter value with passed Querystring value in SSRS

I have one report, in which I have 13 parameters that fetch the data from Database. 我有一个报告,其中有13个参数可从数据库中获取数据。 I want to set only one Parameter value from Query-string URL. 我只想从查询字符串URL设置一个参数值。

For example in my case I want to set UserID value to passed Query-string value in SSRS report. 例如,在我的情况下,我想将UserID值设置为在SSRS报告中传递的查询字符串值。

Is it possible to set only one parameter from Query-string and rest of the parameters will be bind with report's Dataset. 是否可以仅从查询字符串中设置一个参数,其余参数将与报表的数据集绑定。

can anyone please suggest me the best solution to achieve. 谁能给我建议最好的解决方案。 Thanks! 谢谢!

It is possible to have some query parameters and some dataset parameters...but its always good idea to create in backend itself. 可能有一些查询参数和一些数据集参数...但是在后端本身创建它总是一个好主意。 The reason is your fetching all data from backend and filtering out in frontend..if data is more every time report need to pull all data from backend. 原因是您从后端获取所有数据并在前端进行过滤。如果每次报告需要更多数据时,则需要从后端提取所有数据。

只要您具有其他12个参数的默认值,就可以这样做。

I was facing this issue because I have set two values in Available fields ="y" and ="n" 我面临此问题,因为我在“可用字段="y"="n"设置了两个值

And In default values ="y" 并且在默认值="y"

This is why it was showing disabled. 这就是为什么它显示为禁用。 But after removing this " from each values it is working fine now. 但是,从每个值中删除此" ,现在效果很好。

So we just need to use Y and N 所以我们只需要使用YN

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

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