[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

Subreport based on parameterized sql stored procedure

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
johndamato
Asked:
johndamato
  • 2
1 Solution
 
ebolekCommented:
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
 
frodomanCommented:
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
 
ebolekCommented:
Recommend Accept
Comment from ebolek
Date: 10/15/2004 10:41AM PDT

It is the right answer

regards
Emre
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now