Returning a value from Sub Report to Main Report in iReport

后端 未结 5 751
闹比i
闹比i 2020-12-09 12:39

Hi every one I am using iReports for generating one of the reports and stuck at one place.

The situation is like this:

I am using one sub report in my main r

5条回答
  •  不思量自难忘°
    2020-12-09 13:04

    In the subreport variable, you have calculation=System. This should be used when you are calculating the variable yourself using a scriptlet. You do not have an appropriate scriptlet attached to the report, so the variable is never being calculated.

    You probably want to change the variable definition so that it is calculated at the start of the subreport, something like this:

    
        
    
    

    resetType="Report" will never reset the variable while the report is running. calculation="Nothing" will evaluate the variableExpression for every row in the dataset.

    These attributes could be omitted though, as they are the default values used. You should then find that the variable is initialised correctly.

提交回复
热议问题