Reputation: 13038
I want to pass shared variable in main report to a subreport's crosstab formula field ? How do I do this ?
If I declare a shared variable inside main report and try to access it in the subreport's crosstab with 'whilereadingrecords' it just won't get anything.
Upvotes: 1
Views: 1573
Reputation: 11801
I made a mock report and came up with this solution:
whileprintingrecords; shared numbervar foo:=3; foo
MySharedVar
. Enter this code:shared numbervar foo
MySharedVar2
. Enter this code:MySharedVar
MySharedVar2
formula in your crosstab as normal.Upvotes: 2