mpolo91 Posted February 15, 2023 Share Posted February 15, 2023 Hi everybody,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:Subreportcreate variable "var_subreport" of type BigDecimal, Expression 2005, ResetType= None, IncrementType = NoneMainreport:create variable "var_mainreport" of type BigDecimal, ResetType = None, IncrementType = NoneIn Mainreport in the subreport element I set up the following:From variable: var_subreportTo Variable: var_mainreportCalculation Type: nothingThe 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! Link to comment Share on other sites More sharing options...
Tirupathi Mangalarapu Posted February 16, 2023 Share Posted February 16, 2023 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:https://community.jaspersoft.com/questions/536522/pass-value-subreport Link to comment Share on other sites More sharing options...
mpolo91 Posted February 17, 2023 Author Share Posted February 17, 2023 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? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now