Skip to Content
0

Passing Main Report Parameter into Subreport Command

Dec 07, 2016 at 09:09 PM

45

avatar image
Former Member

I have a report that I am working on that has a command in the main report with Begin and End Date as the parameters. I cannot figure out how to pass the Begin and End Date into my command in my subreport. I have tried several different combinatins in the changer subreport links, but have had no success. Has anyone beemn successful at trying to do this?

Thanks,

Jerem

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Dell Stinnett-Christy Dec 07, 2016 at 09:34 PM
0

Try this:

1. Go to the Subreport Links.

2. On the top left under "Available Fields", select the Begin Date parameter and move it to the top right under "Field(s) to link to".

3. On the bottom right, UNCHECK "Select data in subreport based on field".

4. On the bottom left, drop down the list under "Subreport parameter field to use" and select the Begin Date parameter from the subreport's command.

5. Repeat this process for the End Date parameter.

Note that you must have the parameters already set up in the command in the subreport in order for this to work.

For general information about Command best practices, see my blog post here: https://blogs.sap.com/2015/04/01/best-practices-when-using-commands-with-crystal-reports/.

-Dell

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 08, 2016 at 12:45 PM
0

I don't know how I didn't try it that way, but it worked just perfect!

thanks,

Jeremy

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Awesome! Please close out this thread by marking my post as the "Best Answer" so that others who are looking to resolve this same issue can find that this works.

Thanks!

-Dell

0