cancel
Showing results for 
Search instead for 
Did you mean: 

Help passing shared variable from sub report to Main report

Former Member
0 Kudos

Hi

I have a subreport that contains a field with a Y or N value

I want to pass this value to the main report (so that I can use it in a formula to be used as a condition in the header), however I dont seem to be able to get the value returned in the main report, here is what I have done so far -:

I have created a formula {@FullyPaid} in the subreport and placed this in the header of the subreport -:

WhilePrintingRecords;

Shared Stringvar FullyPaid:= {V_CONF_CRITERIA.FULLPAYMENT};

FullyPaid;

I have created a formula {@FullyPaid} in the main report and placed this in the header of the main report (to check the value is returned before applying it to my main condition formula)  :-

WhilePrintingRecords;

Shared StringVar FullyPaid;

FullyPaid;

My subreport is in the header (GH7)

My new formula {@FullyPaid} is in a subsection of this header (GH7a)

Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Allan,

This should work as the formula is in a section below the subreport.

Do you see the value in the subreport's header?

-Abhilash

Former Member
0 Kudos

Hi

Yes I can see the value in the subreport header when I preview.

Just dont see it in the main report.

Former Member
0 Kudos

I figured it out, the subreport was in a header that was suppressed.

Answers (0)