cancel
Showing results for 
Search instead for 
Did you mean: 

passing shared variables from sub report

Former Member
0 Kudos

in my sub report

whileprintingrecords;

SHARED Numbervar  unitcost := {PO.UNITCOST};

in my main report

whileprintingrecords;

SHARED Numbervar  unitcost;

unitcost

the value return start with 0. what did i do wrong? I need then to match

              main      variable from sub report

item 1    50.00     00.00

item 2    60.00     50.00

item 3    70.00     60.00

item 4    80.00     70.00

Accepted Solutions (1)

Accepted Solutions (1)

ido_millet
Active Contributor
0 Kudos

The main report formula getting the shared variable value from the subreport can't be in the same section as the subreport.  It must be in a section below. This is because the subreport gets evaluated AFTER the main report formulas in the same section.

Answers (1)

Answers (1)

Former Member
0 Kudos

thank you very much

I will work with my formulas to contract it