If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Drop Down List in Reporting Services

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-21-07, 17:13
desireemm desireemm is offline
Registered User
 
Join Date: Feb 2004
Location: Alpine Califormia
Posts: 1,709
Drop Down List in Reporting Services

How do you create a drop down box on the report so the users can chose a value and conduct their search according to that value, See I have a SP that when the users enter a parameter they get the results according to that paramter, I would like for the choose one rather then type it up. Can anyone help please
Reply With Quote
  #2 (permalink)  
Old 12-24-07, 07:35
karthic_85 karthic_85 is offline
Registered User
 
Join Date: Dec 2007
Posts: 37
You need to add 'Parameters'

HI

To generate a dropdownlist u need to create a parameter ,for that parameter u should assisgn a dataset(created to get the parameter values) to populate

then in the body u should get the parameter value and pass it to the sp



Meyyappan
Reply With Quote
  #3 (permalink)  
Old 12-26-07, 18:25
desireemm desireemm is offline
Registered User
 
Join Date: Feb 2004
Location: Alpine Califormia
Posts: 1,709
I got it

I got to work, secret is in the REPORT PARAMETERS under Available Values
Reply With Quote
  #4 (permalink)  
Old 12-27-07, 04:11
Diabolic Diabolic is offline
Registered User
 
Join Date: Jul 2007
Posts: 96
Lightbulb

Another thing that is worth metioning in this "drop down list" thing is when, for example, you want to create a sales report based on the user selection of a product.

Let's imagin that your parameters have a StartDate, an EndDate and a Product List (drop down). The end user will be prompt to choose the value for the 3 parameters and will then receive the according report. But what if the user wants to see more than one product but not all of them? For these scenarios there's a parameter property called multi-value, which allows you to select all, some, or none, of the available items in the drop down list. To make your query work in this scenario you will have to change it to something like this

Code:
SELECT
  <something>
FROM
  Sales.SalesLog sl
WHERE
  sl.transactionDate BETWEEN @startDate AND @endDate
  AND sl.productId IN (@productId)
Best regards and happy programming in SQL Server Reporting Services.
Reply With Quote
  #5 (permalink)  
Old 06-01-09, 06:03
lianabanana lianabanana is offline
Registered User
 
Join Date: Jun 2009
Posts: 2
Hi karthic,
How do you do this again.
i didn't quite get it, sorry.

When i tried doing it, it resulted to a dropdown list and a textbox where i must select/input a value.

How do i get rid of the textbox?


Quote:
Originally Posted by karthic_85
HI

To generate a dropdownlist u need to create a parameter ,for that parameter u should assisgn a dataset(created to get the parameter values) to populate

then in the body u should get the parameter value and pass it to the sp



Meyyappan
Reply With Quote
  #6 (permalink)  
Old 06-01-09, 06:20
lianabanana lianabanana is offline
Registered User
 
Join Date: Jun 2009
Posts: 2
"then in the body u should get the parameter value and pass it to the sp"

What do you mean by "in the body"?
Reply With Quote
  #7 (permalink)  
Old 07-23-09, 05:18
GillianM2010 GillianM2010 is offline
Registered User
 
Join Date: Jul 2009
Posts: 5
Can someone update me on this please?
I am very new to Reporting Services and SQL.
I have managed to get the report so that it shows a type in box that selects from my data, but when I try to change it in Report Parameters, to be a drop down box, I get the following when I try to Preview -

An error occurred during local report processing
The definition oft he the report '/Report4' is invalid
The report parameter 'site_id' has a Default Value or a ValidValue that depends on the report parameter ''site_id''. Forward dependencies are not valid.
Reply With Quote
  #8 (permalink)  
Old 03-23-10, 13:01
dabooj dabooj is offline
Registered User
 
Join Date: Sep 2006
Posts: 30
Exclamation

Change the order of your parameters. The way they are currently ordered, a parameter is looking at one that comes after it. So select the parameter in question and use the up/down arrows to change the order.
Hope this helps.

Shuja
Reply With Quote
  #9 (permalink)  
Old 03-24-10, 17:14
GillianM2010 GillianM2010 is offline
Registered User
 
Join Date: Jul 2009
Posts: 5
Thank you

I haven't worked this for a little while, but next time I have opportunity I will try this.

Thanks for taking time to reply
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On