Solved

Subreport based on parameterized sql stored procedure

Posted on 2004-10-15
6
261 Views
Last Modified: 2008-03-03
The subreport doesn't seem to get the variable (same as variable from stored proc of main report.).
Can the subreport run when based on a parameterized proc?
0
Comment
Question by:johndamato
  • 2
6 Comments
 
LVL 10

Accepted Solution

by:
ebolek earned 500 total points
ID: 12321881
Yes it can. When you add a sub report to the main report, you can tell it to  depend on the main report or not .

if it Depends on a field form main report and this could be the parameter of the main rpeort do this
1. Add the subrpeort to the main report
2. right click on the main report
3. Select edit subreport links
4. Pick the field from the main rpeort that subreport is linked
5. Click the parameter of the subrpeort from the dropdown. Here is the trick. Dont pick the first one from the dropsown, scroll to the end pick the parametr with ?
6. Click OK.

Now when main rport runs, field value is passed to the sub reoprt
 b. subreport is independent of the main report
Create the subreport as an on demand sub report

Regards
Emre
0
 
LVL 42

Expert Comment

by:frodoman
ID: 12322311
Emre is basically correct - just a couple of clarifications may be in order:

2.  Rt-click on the SUB report in the main report designer
3.  Select "change subreport links"
4.  Select the main report parameter in the top section
5.  In the subreport dropdown you don't want the {?PM - Paramname} entry you want the one that's {?Paramname}.  In CR8.5 or earlier it's difficult to tell but you can scroll down in the dropdown.

All of this assumes that the parameter has already been created in the subreport.

HTH

frodoman
0
 
LVL 10

Expert Comment

by:ebolek
ID: 12555198
Recommend Accept
Comment from ebolek
Date: 10/15/2004 10:41AM PDT

It is the right answer

regards
Emre
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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 …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

12 Experts available now in Live!

Get 1:1 Help Now