Solved

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

Posted on 2004-10-13
9
679 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
 
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how the fundamental information of how to create a table.

705 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

15 Experts available now in Live!

Get 1:1 Help Now