简体   繁体   中英

how to type value dropdown list in SSRS?

I have a dropdown list on SSRS report. But I have many value in filter. So I want to type value in dropdown list parameter. How can I do like this?

Maybe ı can do autocomplete option in parameter. but ı don't know how can ı do:(

please help me about this issue

Thanks.

我认为这是不可能的,但是您可以采取的解决方法是在用户可以输入关键字的地方设置另一个参数,然后使用该参数过滤连接到主参数的数据集。

maybe I can use add new parameter which type is textbox so I can show use dropdown and textbox field for one parameter in same report. but I could not find How can I do like this I want to have two options.

在此处输入图片说明

1- If users want to use dropdown list for order they should use dropdown list parameter and textbox must be invalid or textbox must be set in dropdown value.

2 - Or if users want to type with keyboard manuelly for order, dropdown list must be invalid or dropdown must be show just type in textbox value. I added screenshot.

Do you have some suggestions? How can I do like this? My customers want to use dropdown list and type in manuelly in textbox for same parameter on one report.

Thanks.

I think @Aldrin as suggesting that you use another parameter to filter you currant parameter. Let's say you have your parameter (@CurrentParam) and it contains a long list of Countries. You could add another parameter (call it @SearchParam) which has nothing set in the available list so you can just type anything in. The dataset query to populated available list for @CurrentParam woould read something like

SELECT Country FROM Countries WHERE Country like '%' + @SearchParam + '%'

If you type, for example, "uni" into @SearchParam then click on the country parameter drop down, you would get a filtered list containing "United Kingdon", "United States" etc...

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