Solved

Crystal Report SubReports using Stored Procedures and Passing Same Parameters

Posted on 2009-06-30
1
786 Views
Last Modified: 2012-05-07
I have a Crystal Report which will be using 4 different data sets all retrieved from stored procedures.  Each procedure uses the same parameter value(@FromDate, @ToDate).  Yet, when I load the main report it asks for me to enter a parameter for all procedures.  Is there a way to make the report only ask 1 time for the parameter for each and every subreport?  See ScreenShots below...  Thanks in advance!  

P.S. - If there is a better or more effecient way to make this work I am open for suggestions.  Subreports were the only solution that I saw as being ideal for this client request.  
Report.JPG
Parameter-Dialogue.JPG
0
Comment
Question by:Kyle_BCBSLA
[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
1 Comment
 
LVL 2

Accepted Solution

by:
Kyle_BCBSLA earned 0 total points
ID: 24745327
I figured it out.  Pretty straightforward, just overlooked association.  The way to do this is to have Parameters on the Main Report.  Right-Click on the Subreports and select to Change Links...  Select the Parameter from your Main Report move it to the right side of the dialog.  Then in the bottom left dropdownlist select the associated Parameter which exists in your Subreport.  Do this for each Subreport and you may have one request for all duplicate parameters.  The tricky part is when using a date.  My Stored Procedures parameters were "DateTime" because this is the only date format that SQL Server 2005 accepts.  Hence, when creating the parameters in your Main Report you must make sure that the datatype matches.  "Date" will not work.  You must use "DateTime".  

CASE CLOSED!  haha...  
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

630 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