﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Reporting Services / Reporting Services 2005 Development  / Create Paramater Filter by State / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 18 May 2013 10:21:15 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>[quote][b]Welsh Corgi (1/13/2012)[/b][hr]The refresh and all of the other control with the exception of the Show or Hide Parameter button are disabled on the preview tab.[/quote]The Refresh button will be grayed out until you select some parameters and run the preview. When the results appear, the other toolbar buttons should no longer be grayed out. Are your buttons staying grayed out after you run the preview and see the result?</description><pubDate>Fri, 13 Jan 2012 09:30:20 GMT</pubDate><dc:creator>wolfkillj</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>The refresh and all of the other control with the exception of the Show or Hide Parameter button are disabled on the preview tab.</description><pubDate>Fri, 13 Jan 2012 09:09:40 GMT</pubDate><dc:creator>Welsh Corgi</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>[quote][b]Welsh Corgi (1/11/2012)[/b][hr][quote][b]matt.jonas (1/11/2012)[/b][hr]Can you post code for the stored procedure you are calling to populate your State dropdown box?[/quote]I have made some progress.I created another Data Set to poulate the list box and that works. [code="sql"]SELECT StateAbbrFROM States[/code]I Select a State 'AK', click on View Report and it Filters the records. If I select another State from the list 'TX' and Click on View and it still displays 'AK'[/quote]As others have mentioned, this is most likely caused by the fact that BIDS caches the dataset the first time you generate a report previews and uses the cached data every time you re-run the report preview. There's a "Refresh" button on the Preview tab toolbar - click it to make BIDS retrieve new data from the data source to generate the report preview.</description><pubDate>Fri, 13 Jan 2012 08:43:06 GMT</pubDate><dc:creator>wolfkillj</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>[quote][b]jcrawf02 (1/11/2012)[/b][hr]Meaning that you want to be able to pick all states? (by making no selection)  if so, then create your statement dynamically and only drop in the state if selected. If that's not what you want, please clarify.[/quote]Excuse me but I have written a lot of reports in many different tools but that is not the case with SSRS.I did not know that you had the option to select all states until I checked the multi-select check box.So please disregard that statement.:-)</description><pubDate>Wed, 11 Jan 2012 15:36:56 GMT</pubDate><dc:creator>Welsh Corgi</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>Meaning that you want to be able to pick all states? (by making no selection)  if so, then create your statement dynamically and only drop in the state if selected. If that's not what you want, please clarify.</description><pubDate>Wed, 11 Jan 2012 15:28:18 GMT</pubDate><dc:creator>jcrawf02</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>Thanks. The problem that I'm dealing with is that my Stored Procedure allows nulls but I must Select a State or I get an error.:hehe:</description><pubDate>Wed, 11 Jan 2012 11:06:05 GMT</pubDate><dc:creator>Welsh Corgi</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>I think that's BIDS caching again -I think you need to exit the report, resave, and then try running it again.You shouldn't see that behaviour in a deployed report :-)</description><pubDate>Wed, 11 Jan 2012 11:01:49 GMT</pubDate><dc:creator>Gazareth</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>I spoke to soon, modified the SP to Accept a NULL value and the report defaults to the last State that I selected in the Drop Down Box.</description><pubDate>Wed, 11 Jan 2012 10:55:53 GMT</pubDate><dc:creator>Welsh Corgi</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>Thanks everyone, I deleted the parameters and Dataset, recreated and all of my problems went away.:crazy:</description><pubDate>Wed, 11 Jan 2012 10:32:41 GMT</pubDate><dc:creator>Welsh Corgi</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>IIRC BIDS caches results locally. There is a way to make it run a fresh set but I forget how!You can force it by deleting the cached data from the file system - it'll have the same name &amp; path as the rdl file.</description><pubDate>Wed, 11 Jan 2012 09:59:24 GMT</pubDate><dc:creator>Gazareth</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>[quote][b]matt.jonas (1/11/2012)[/b][hr]Which version of SSRS are you using?  Are you doing your testing in Business Intelligence Development Studio?[/quote]SSRS 2005 &amp; I'm testing in BIDS.</description><pubDate>Wed, 11 Jan 2012 09:55:02 GMT</pubDate><dc:creator>Welsh Corgi</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>Which version of SSRS are you using?  Are you doing your testing in Business Intelligence Development Studio?</description><pubDate>Wed, 11 Jan 2012 09:50:53 GMT</pubDate><dc:creator>matt.jonas</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>I deleted the parameter but the data is still filtered by State?:laugh:Caching?</description><pubDate>Wed, 11 Jan 2012 09:43:03 GMT</pubDate><dc:creator>Welsh Corgi</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>[quote][b]matt.jonas (1/11/2012)[/b][hr]Can you post code for the stored procedure you are calling to populate your State dropdown box?[/quote]I have made some progress.I created another Data Set to poulate the list box and that works. [code="sql"]SELECT StateAbbrFROM States[/code]I Select a State 'AK', click on View Report and it Filters the records. If I select another State from the list 'TX' and Click on View and it still displays 'AK'</description><pubDate>Wed, 11 Jan 2012 09:39:48 GMT</pubDate><dc:creator>Welsh Corgi</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>Can you post code for the stored procedure you are calling to populate your State dropdown box?</description><pubDate>Wed, 11 Jan 2012 09:29:56 GMT</pubDate><dc:creator>matt.jonas</dc:creator></item><item><title>RE: Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>So far I have created a Stored Procedure with a State Parameter.I changed the Data Source to the Stored Procedure.I have a Drop Down Box and it displays the States but they are repeated for every record on my Stored Procedure which is based on Companies.I selected a State 'TX' and clicked on View Report and it filters the Report.I click on the State List box and it and it only lists 'TX', the other States are not displayed.I click to refresh the Data but I sill on get TX.I do not want the States to be distinct.How can I accomplish that &amp; get rid of the filter problem. </description><pubDate>Wed, 11 Jan 2012 09:18:49 GMT</pubDate><dc:creator>Welsh Corgi</dc:creator></item><item><title>Create Paramater Filter by State</title><link>http://www.sqlservercentral.com/Forums/Topic1234036-1063-1.aspx</link><description>I'm trying to create a parameter to filter a Report by State.Any help would be greatly appreciated.</description><pubDate>Wed, 11 Jan 2012 08:28:05 GMT</pubDate><dc:creator>Welsh Corgi</dc:creator></item></channel></rss>