How to allow blank values for multitple parameters

不羁的心 提交于 2019-12-10 17:19:51

问题


I have multiple parameters for a report in SSRS Report Builder. I want all the parameters to allow blank values if no selection is necessary, but when I try to run the Report, the first parameter will allow a null/blank value and it will prompt me for the rest of the parameters. Is there any way around this?


回答1:


  1. Set Allow Blank Value(and/or Allow NULL Values) for all the parameteres.

  2. If the Available values are set, make sure your available values for the parameter brings Blank(and/or NULL) values.

    If it comes from query. Update your query something like this:

    SELECT FieldX FROM Table1 WHERE blah=blah UNION
    SELECT '' UNION
    SELECT NULL

    If it is specify values then specify Blank and NULL values

  3. Set the Default values to pull the blank(OR NULL) depending on your requirement. For Blank leave the value as empty.

  4. Final thing your query which produces the data can handle Blank(and/or NULL) values.



来源:https://stackoverflow.com/questions/24658441/how-to-allow-blank-values-for-multitple-parameters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!