简体   繁体   中英

SSRS: How to disable a parameter (nvarchar) based on another parameter

Im making a report that has a parameter DateFrom: Date To: Handled: Successful or Unsuccessful GroupName: AgentNamme:

What I want to do is if I selected in Handle 'Unsuccessful' the GroupName will be disabled. I tried looking for answers on the net but failed.

Hi I think you can achieve this using Optional Parameter feature of SSRS. or you can change the data set in such a way. you can edit the query and check there.

Example- Optional Parameter

You can't disable a parameter in SSRS. You have to provide a placeholder value to it instead, usually a null value.

The available values for GroupName should be based on a query to get all of the possible group values, unioned with a null value for N/A. When Handled = Unsuccessful, the only possible value for GroupName should be N/A.

由于不可能禁用参数,如果Hanled = Unsuccessful,我只查询默认值。

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