Solved

SQL Reporting Services - Pass 1 parameter, prompt user for other

Posted on 2004-10-13
9
687 Views
Last Modified: 2008-01-09
I have created a report using the new SQL Reporting Services of all of our customer groups.  I want to be able to click on a customer and open up the customer detail report.

The customer detail report has 2 parameters - CustomerID (passed from the main summary page) and an invoice date.  Since the customerid is somewhat cryptic to the user I want to fill this out for them but still allow them to enter the date.  I can only get it to work if I pass no values or pass both values.

Please HELP!!!!!
0
Comment
Question by:bakraniar
  • 5
  • 3
9 Comments
 
LVL 14

Expert Comment

by:simon_kirk
ID: 12347530
Do you need to have it split into 2 reports?  The easier option would be to have just the Customer Detail Report with 2 parameters.

Parameter 1 would be selecting the Customer from a dropdown list and Parameter 2 would be for the Invoice Date.  You could even link the 2 parameters together so that by selecting a Customer, would then dictate what invoice dates were available for Parameter 2.

I know how to do it the way you mention above, but it's slightly more long winded, so I thought I'd see if doing it this way would suffice.


0
 
LVL 14

Expert Comment

by:simon_kirk
ID: 12347560
You'd be better off posting SQL Reporting Services questions under the DB Reporting area (less questions asked in that category!)
0
 

Author Comment

by:bakraniar
ID: 12350859
It needs to be 1 report.  The main report shows

I have both reports working but cant figure out how to pass the parameters properly.  The main report shows:

Group Name   Total Members
ABC Company        100
XYZ Company         120

I have the detail report linked to the group name and it currently passes customerID.  The other parameter required for the detail report is our effective date of membership (i.e. 10/1/2004 or 11/1/2004)

If I open the detail report it prompts me to enter both parameters.  When I link to it from the main report and pass it the customerID I get the following error:

This report requires a default or user-defined value for the report parameter 'groupid'. To run or subscribe to this report, you must provide a parameter value. (rsReportParameterValueNotSet

If possible I would like to hide the customerID parameter since that info has been passed from the main report and just ask the user to enter the effective date they are interested in seeing.

also, thanks for the advice - will post in the DB Reporting Area next time.  

0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 14

Expert Comment

by:simon_kirk
ID: 12356006
Are you opening the Detail Report through a hyperlink on the Main Report's Group Name field (i.e. ABC Company, XYZ Company) ?
0
 

Author Comment

by:bakraniar
ID: 12375002
Yes.  This is where I have tried to pass 1 of the 2 parameters.
0
 
LVL 14

Accepted Solution

by:
simon_kirk earned 500 total points
ID: 12420140
I've been reading up on various newsgroups and BOL, and after setting up a test report to do what you are doing, I cannot find a way to pass just the one parameter without causing problems.  It seems a problem area that was not fixed completely by SP1, and from what MS bods have posted, it will be addressed more in Version 2 of RS (Yukon version).  You can hide parameters by going ro Report Manager, Select the Properties of the report, on the Parameters option you can untick "Prompt User" - though this as well seems to have it's own problems!

The best and quickest way round this would be to have a secondary drilldown under your Company which groups the effective date, from which the user clicking the date would have both parameters passed into the detail report.  Maybe not entirely what you are after, but saves wasting a lot of time trying to get it done the way your trying to!
0
 

Author Comment

by:bakraniar
ID: 12646220
Simon Kirk - sorry about the delay in accepting an answer for this question - have been pulled away on several other projects.  Again, thank you for your assistance.
0
 
LVL 14

Expert Comment

by:simon_kirk
ID: 12646312
No problem.  A shame that the software can't do what you wanted, no doubt the Yukon version will add more functionality.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question