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

Passing a variable from subreport to the main report

Hi guys, was unable to google this, so Im urning to you guys:

I was wondering whether it was possible to do this:

I have a subreport taking data from a table. In the main report, in the suppres condition of details section containing this subreport, I need to have a variable containing the total count of rows in that table. I know there are shared variables for that, but the problem is, that the variable in the condition is processed sooner than the one in the subreport.

Any ideas on this?

Thanks a lot

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 08:13 PM

    Do you want to Suppress the details section if there are no records in subreport by passing the count from subreport to mainreport?

    To get the count from subreport to main report try creating formula like this in subreport

    shared numbervar i:=count(field);

    in the main report create a formula like

    shared numbervar i;

    this sould be processed only after your subreport to work

    Regards,

    Raghavendra

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 08:13 PM

    Can you not insert the sub-report in section other than main report details section such as report header, or page header and suppress it?

    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.