Solved

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

Posted on 2004-10-13
9
692 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
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 UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

740 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