buzz-dee Posted February 26, 2014 Share Posted February 26, 2014 I know that it is possible to get a return value from a subreport to the main report in iReport. Also there are subdatasets which can also have an own SQL query like a subreport. As I understand a subdataset can only be used with list, charts etc., but I don't know how to access the subdataset fields, variables and parameters in the main dataset/report. Is it also possible to get a return value from a subdataset? If not, how is it possible to access values from the subdataset? Link to comment Share on other sites More sharing options...
hozawa Posted February 26, 2014 Share Posted February 26, 2014 The answer in the following post seems to have a pretty good explanation.http://stackoverflow.com/questions/7482412/multiple-queries-in-a-single-jasper-document Link to comment Share on other sites More sharing options...
buzz-dee Posted December 11, 2014 Author Share Posted December 11, 2014 I can't find any information in that thread about a return value, that I can pass back to the main report. Can I access a subdataset field from a e.g. a list directly in the main report? Link to comment Share on other sites More sharing options...
Teodor Danciu Posted April 15, 2020 Share Posted April 15, 2020 Here is an explanation about how to return a value from a subdataset:https://community.jaspersoft.com/wiki/how-pass-variable-value-sub-dataset-main-dataset 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