Jump to content

Whether Ireport support multilevel sub-report?


gudaoxuri

Recommended Posts

In a project, I need to use multilevel data structure. For example,

 

The top level is Country.

The next level is state, which is called province in China.

The last level is city.

 

Would you please tell me how to achieve it using Ireport.

 

Now I can implement two-step data structure using sub-report of Ireport,

 

The main report is country list,

The sub-report is state list,

But I cannot edit sub-report into sub-report mentioned above.

 

I can’t find useful information on the Internet. So, would you please tell me the solution.

 

Thanks.

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I have not tried this yet but could you use the list element available in the 3.5.x versions of iReport? It is kind of like a subreport but inside the main reoprt. I am not sure if there is any limit to the number of them that you can have, or if they would work on a subreport. I would have to give the list object a try and see if that worked.

Link to comment
Share on other sites

Hi,

 

I remember this is possible.  I once had a multi-page report.  Each page has more than one charts, each is a subreport of a "page" report.  The page report is itself a subreport which is called by the top-level report (the master report).  In other words, this multi-page report has this structure (A ->  B means B is a subreport called by A)

 

master report -> page report -> individual charts

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