Solved

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

Posted on 2004-10-13
9
686 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Suggested Solutions

Title # Comments Views Activity
query execution hang 5 28
Help Required 2 29
TSQL - How to declare table name 26 28
Deal with apostrophe in stored procedures 8 41
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
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 and will be exposed to the many uses the SELECT statement has.

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now