简体   繁体   中英

Repopulating an already populated dropdown list in SSRS report

I need assistance with something which I have not been able to find through searching this site or even via Google.

I currently have an SSRS report which has a dropdown list that is immediately populated upon loading of the page.

Due to the extensiveness of this list, I have been asked to add another paramater to the report - a text box that would allow the user input and further "filter" the already-populated dropdown list.

By adding this feature, it would allow the user to narrow the contents of the dropdown list, if the user already knows what value he/she is after.

Now this is where I'm getting stuck... as far as I am aware, you can only have one dataset that is able to provide the data of any given paramater (in this case, a dropdown list). So how do you repopulate a dropdown list, that has already been populated?

Any assistance with this would be greatly appreciated.

EDIT: Please note that the only code driving this report are SQL stored procedures. This report was created using Visual Studio 2013.

Thanks.

Use a second dataset in order to populate your dropdown. In the second dataset, simply take your sql query and select distinct in a group, then you can use the second dataset as the dropdown and tie it to your column that matches.

在此处输入图片说明

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