Select All as default value for Multivalue parameter

后端 未结 7 1647
无人共我
无人共我 2020-12-13 17:07

I\'m building a report in Visual Studio 2008 with a lot of multivalue parameters and it\'s working great, but I would like to have have the \"(Select all)\" option as the de

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 17:34

    Using dataset with default values is one way, but you must use query for Available values and for Default Values, if values are hard coded in Available values tab, then you must define default values as expressions. Pictures should explain everything

    Create Parameter (if not automaticly created)

    Create Parameter

    Define values - wrong way example

    Define values - wrong way

    Define values - correct way example

    Define values - correct way

    Set default values - you must define all default values reflecting available values to make "Select All" by default, if you won't define all only those defined will be selected by default.

    Set default values

    The Result

    The result

    One picture for Data type: Int

    One picture for Data type Int

提交回复
热议问题