Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Data Management

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

    Search

    XML Feeds

    Google Ads

    « OUTER JOIN orderBest Practice: Coding SQL Server triggers for multi-row operations »
    comments

    So today I had some fun with a report. I had to set up a report that had links to some graphs, but I needed to pass the multi-value parameters to the graphs. Awesome. This took me roughly an hour to set up (with googling and messing around trying to get it to work). My eventual set up seems a little less intuitive than I thought it would be, so here I am documenting what I did.

    To start off, the main report and graph reports have two multi-select paramaters, Year and Quarter. The range for year is 2006-2012 and quarter is 1-4. These are both set up as strings. The parameters need to be set up like this in every report, otherwise when the values are passed it won’t work properly.

    With the parameters set up, I then set up a text box to point to one of the graph reports.

    I then set up the parameters to pass to the second report. When I first set it up, the parameter defaulted to Value(0). I’m not 100% sure if putting that will work the same or not. Feel free to experiment with it. I removed the (0).

    Now that the parameters are set to pass to the report, you should be able to run the report and click on the text-box and have the second report open with the correct parameters. Remember, the most important part is setting up the parameters on the secondary reports.

    About the Author

    I have an A.S. in Computer Programming. I am currently a Database Developer (April 2008-Present) for a development group at a contract research lab, where we build in-house applications using Microsoft SQL Server (2005 and 2008) and ASP.Net 3.5. I have a part-time job (April 2007-Present) as a dba/db developer/web developer/designer. I use: SQL Server 2005/08/R2, HTML, CSS, PHP, and Java Script. Penguins are awesome, but I'm not a linux person. If you have any questions feel free to email me at dforck@gmail.com
    Social SitingsTwitterFacebookLTD RSS Feed
    Instapaper

    2 comments

    Comment from: Stuart Steedman [Visitor] · http://www.exicle.com
    Stuart Steedman The (0) refers to the first value in the multi-value array,
    so you were right to get rid of it.

    Stu
    02/16/10 @ 06:29
    Comment from: David Forck (thirster42) [Member]
    cool, thanks.
    02/16/10 @ 20:32

    Leave a comment


    Your email address will not be revealed on this site.

    Your URL will be displayed.
    (Line breaks become <br />)
    (Name, email & website)
    (Allow users to contact you through a message form (your email will not be revealed.)