Jump to content

fillinf subreport data in java code


bthale

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 least

The 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...