本文介紹了顯示多值參數(shù)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
我有一個多值參數(shù),其中包含大約 25 個元素.如果用戶選擇全選"并且我使用標準(至少據(jù)我所知)在報告頂部顯示參數(shù)的方法:
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?
推薦答案
計算所選值的數(shù)量,并將其與填充參數(shù)的數(shù)據(jù)集中的記錄總數(shù)進行比較.
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, ","))
這篇關(guān)于顯示多值參數(shù)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!