• Increase font size
  • Default font size
  • Decrease font size
Home Reporting Services 'Show All' Parameterbox

'Show All' Parameterbox

E-mail Print
(0 votes)

ms_sql_2_zoom_128 You want in your report to make use of a parameter, for example the names of the countries where you've been customers. Will often that you have a choice option in parameterbox you want to 'Show All', in this case, all countries . The solution is as follows. Create a dataset in your report
  1. ' _Toon Alles' AS LandNaam, SELECT '_Toon All' AS Name Country,
  2. AS LandID AS 9999999 LandID
  3. UNION ALL
  4. SELECT DISTINCT
  5. Country Name,
  6. LandID
  7. DimLand AS DL FROM AS DimLand DL
  8. LandNaam ORDER BY Land Name







We have now generated a list of all countries in our unique country table. As the first country we have the land "_Toon All ', it acts later as a parameter for all countries to show. Note that a space at the beginning. This is to make sure that he will top of the list.


Create Parameter
Go to your report parameters and make the following parameter to:





Dataset for use within your region data in your report
Finally, in our dataset that the report ultimately what extras to include in the WHERE Clause to ensure that all places are displayed when there '_Toon All' is elected!
  1. * SELECT *
  2. DimKracht FROM DimKracht
  3. ( @GeselecteerdeLandID = 9999999 OR LandID = @GeselecteerdeLandID ) WHERE (@ GeselecteerdeLandID = 9999999 = @ OR LandID GeselecteerdeLandID)


Default is the parameter to a value of 9,999,999. This is 'Show All'. As we stated in our main dataset to do the following: Make sure the parameter is 9999999. Is he stops and shows everything. He is not equal to 9999999 then he jumps automatically to the BR area and check the entered parameters.



Copyright 2008. All Rights Reserved.

Trackback (0)

TrackBack URI for this post

Comments (1)

RSS feed Comments
...
0
Exactly what I was looking for. Thanks

smilies/cheesy.gif
, mei 30, 2009 Stephan , May 30, 2009
  • Report abuse
  • 0
  • Report abuse
  • Report abuse

Write comment

bold italicize underline strike url image quote smile wink laugh grin angry sad shocked cool tongue kiss cry
| groter smaller | bigger
security image
Write the displayed characters

busy