[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2004-10-13
9
Medium Priority
?
699 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 2000 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

I have a large data set and a SSIS package. How can I load this file in multi threading?
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

656 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