Skip to Content
author's profile photo Former Member
Former Member

How to make a common parameter for two subreports in the main report.


Hi,

I have a crystal report which has 2 subreports in it. Both the subreports have the same code and I need to create a parameter for Project Cost in both the subreports for filtering the data.

When i create the same parameter in both the subreports, i see two parameters with same name on my prompt page while refreshing the report. however I just want 1 parameter on my prompt page and data should get filtered in both the reports.

Can anyone please suggest something, How can I do that? is there a way for sharing same parameter between two subreports?

Thanks!

Neha.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Mar 13, 2014 at 03:29 PM

    hi Neha,

    here's how to do this:

    1) create a new parameter with the same name on the main report

    2) right click on your first subreport and choose Change Subreport Links

    3) in the Field to Link To list drag over your new main report parameter

    4) open the Subreport Parameter Field to Use select menu and choose your subreport parameter

    5) repeat steps for the 2nd subreport

    now you'll only get prompted once.

    cheers,

    jamie

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 13, 2014 at 03:28 PM

    Yes Neha:

    1-right click sub report

    2- pick "change sub report links"

    3- link the values from the main report to sub report.

    make sure the data type is same for linking values.


    sub_report.jpg (122.8 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.