?
Solved

Subreport based on parameterized sql stored procedure

Posted on 2004-10-15
6
Medium Priority
?
268 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
[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
  • 2
6 Comments
 
LVL 10

Accepted Solution

by:
ebolek earned 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

764 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