bthale Posted January 24, 2011 Share Posted January 24, 2011 I am having trouble passing data down to a subreport. This subreport is inside another subreport. I tried passing REPORT_DATA_SOURCE but no data is displayed. Is it possible ot fill a subreport in java code and add the subreport to a master using the API? Link to comment Share on other sites More sharing options...
bestofwest Posted January 25, 2011 Share Posted January 25, 2011 NO, you are confuse about subreport. You can call a Scriptlet or a Java Class (function) for get data to fill some report field ou var. Link to comment Share on other sites More sharing options...
bthale Posted January 25, 2011 Author Share Posted January 25, 2011 I have been working for three days on something that seems doable and easy but has been quite frustrating. I have a java bean data source that contains a list of data. This list is passed as data source to a subreport. This first level subreport works fine. Within that data is another list which I am passing to a subreport embedded in the first subreport. This subreport data seems to be passed, but is never shown. I have tried many different things to no avail.I even create 3 simple reports with nothing but static test in the title, master, sub one, and sub two. The last subreport in this simple setup does not show either.While I don't know if the datasource is actually passed, I do pass in a parameter that shows the list size which is shown. I did this for debugging purposes and added to a page header section, but the detail section doesn't show.So maybe it's not possible to do this Master -> SubreportOne -> Subreport Two.Frustrating to say the leastThe reason for creating the report this way is because I need the last list (subreport two) to display in 3 columns. 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