I want to use the return value of a subreport into the master report, but the only thing that is shown is "null".
I'd done the following:
create variable "var_subreport" of type BigDecimal, Expression 2005, ResetType= None, IncrementType = None
create variable "var_mainreport" of type BigDecimal, ResetType = None, IncrementType = None
In Mainreport in the subreport element I set up the following:
From variable: var_subreport
To Variable: var_mainreport
Calculation Type: nothing
The evaluation time of the text field that displayes the return value is set to Report.
I also want to use the value vor a subtraction. So the return value should be substracted from another value. But this also gives null.
Any hint to solve this is appreciated!
Can you change the calculation type to System and try again?
Also, refer to the answer from this thread that should help you with the steps:
I change the calculation type of var_mainreport to System as descriped in the referenced topic, but it changed nothing. The return value is null, but normally 2005 should be printed.
I added the xml files. Maybe you can take a look and check whats going wrong?