Parameter Search

  • I would like to let users choose a list of customers. The customer table is large, approx 30,000 rows. In order for the user to not have to scroll back and forth through this parameter list, I would like them to be able to search for a customer by entering a number. Once they have finished choosing the customers they would like, they should be able to run the report returning data for all customers in their list.

  • Would it work to have them type in a delimited list? If so, the query for that is easy.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • No, because they may not know the entire customer number. Truly I would like them to be able to enter either an entire or partial customer number, or a partial or entire customer name. I have a query that I currently use with SSAS that allows the user to search that way, however I can only run for one customer at a time.

  • Within SSRS itself this will be somewhat complex. I can see this being done a couple of ways, you could create multiple prompts, where they could enter a set number of customer numbers, say perhaps 10. Make the first one mandatory, the rest optional.

    The second way, would be to use a string and let them enter a comma delimited list. You'd need to parse the list in your query.

    Probably the best way particularly if you already have a custom front end for your reporting solution, is to capture all of the customer numbers in the custom front end allowing the application to have the user verify that customer 1 was john smith instead of customer 2 who was jane smith. Then you could pass that as a delimited string to SSRS, parse it in your query and you'd be all set.

    -Luke.

    To help us help you read this[/url]For better help with performance problems please read this[/url]

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply