Displaying Multi-Value Parameters

一个人想着一个人 提交于 2019-12-10 23:29:27

问题


I have a multi-valued parameter which has about 25 elements in it. If the user selects "Select All" and I use the standard (at least as far as I know) method of displaying the parameter at the top of the report:

=join(Parameters!ProductClass.Value, ",")

Rather than the the word "All" or something I get:

01,02,03,04,05,06,07,08,09,10,11,12,14,15,16,17,18,19,20,21,22,25,30,31,98,99

There isn't a better way to handle this?


回答1:


Count the number of values selected and compare it to the total number of records in the data set that populates the parameter.

=IIF(Parameters!ProductClass.Count = Count(Fields!CaseSensitiveFieldName.Value, "CaseSensitiveDataSetName"), "All", Join(Parameters!ProductClass.Value, ","))


来源:https://stackoverflow.com/questions/3480463/displaying-multi-value-parameters

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