简体   繁体   English

“全选”的URL CAll参数值

[英]URL CAll Parameter Value for “Select All”

I am accessing a third party SSRS report by using an URL Call, for the parameter value "UserID" I enter all the User IDs # I have, but every time a new user is added to the report I am having to include the new user ID manually to the URL to run. 我正在通过URL调用访问第三方SSRS报告,对于参数值“ UserID”,我输入了我拥有的所有用户ID,但是每次将新用户添加到报告中时,我都必须包括新用户将ID手动添加到要运行的URL。 I figure it would be easier if I could use the parameter value for the "Select All" option on the report drop down menu so that it downloads everything all the time and then sort the data, but have been unable to find what the value is for that option, I have used -1,1,Null,All etc. 我认为,如果可以在报表下拉菜单上的“全选”选项中使用参数值,这样它会一直下载所有内容,然后对数据进行排序,但是却找不到该值是什么会更容易。对于该选项,我使用了-1,1,Null,All等。

Q. How to figure out what is the parameter value for "Select All" or what is another way around this? 问:如何找出“全选”的参数值是什么,或者如何解决? I have no access to the ParameterCommand table. 我无权访问ParameterCommand表。

Example: 例:

/ReportServer?%2FReportList%2FReportName&BegDate=06%2F25%2F2018%2000%3A00%3A00&EndDate=06%2F25%2F2018%2023%3A59%3A00&UserID= ??? / ReportServer?%2FReportList%2FReportName&BegDate = 06%2F25%2F2018%2000%3A00%3A00&EndDate = 06%2F25%2F2018%2023%3A59%3A00&UserID = ???

Further to my comment (and before anyone downvotes this) IF you have or can get access to the SQL \\ Stored Proc you will want to do something like this 根据我的评论(在任何人对此表示否决之前),如果您具有或可以访问SQL \\ Stored Proc,则需要执行以下操作

DECLARE @P INT = 303;
SELECT TOP 5
*
FROM
dbo.tableName
WHERE
fieldName = ISNULL(@p, fieldName)

This way you can pass in an ID or NULL and it will return in this case the top 5, or the individual record you want 这样,您可以传递ID或NULL,在这种情况下,它将返回前5个或您想要的单个记录

Otherwise if you cant get to the SQL \\ Stored Procedure then speak with the DBA or the DBO who should be able to help you 否则,如果您无法使用SQL \\存储过程,请与DBA或DBO交谈,他们应该能够为您提供帮助

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

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