Jump to content
We've recently updated our Privacy Statement, available here ×

Subreport within another subreport


thiagoalgo

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I will try to illustrate: I have a report of countries. For each country I have a sub-report of states. Within the sub-report of states I would like to have a sub-report of cities. This is possible? Working with collections of java beans or JRDataSource, as I move the towns of under-report of the sub-states to report for cities?

 

Thanks,

Link to comment
Share on other sites

Just use a BeanCollectionDataSource from your current state to call the city subReport with all the Cities that are within that state.

 

So I guess something like "new JRBeanCollectionDataSource($F{State}.getCities())" should work (not sure, code just from mind)

 

Just for example - don't know your beanstructure.

 

hth

C-Box

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...