简体   繁体   中英

SSRS Parameters Hidden and Unhidden

I have a report that requires a branch name as parameter. There are also other parameters like business year, quarter etc.

This report will be accessed via two methods.

1. Via the SQL Server Reporting Portal.

Users at head office will access this report via the Report Server Portal and be able to pick the parameter value seeing as they are allowed to see all the branches data.

User can change the Branch

用户可以更改分支

2. Via software

Calling a URL inside the software used by branches, the value of the parameter will be set in the URL based on the branch accessing it and locked so the users can change it another branch.

User can not change the Branch

用户无法更改分支

How can I create the parameter in such a way that it is conditionally locked? Can the fact that it is locked be specified in the URL that the software calls?

I really want to avoid creating two different reports for Branch and Head Office.

I might have found a workaround (well actually a better approach).

Credit goes to Kidiskidvogingogin

By using the UserID built-in parameter, I can limit user on the what data is displayed in the drop down box for Branch Name. A user linked to branch, will only see that branch, the user linked to headoffice, will see ALL branches.

By filling the parameter with a dataset, I can filter the data set to only return branches applicable to that user.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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