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

Is it possible to create subreport in loop using ireport designer?


rmjrao
Go to solution Solved by rlfisherpbtgroup.com,

Recommended Posts

I have a requirement to generate a employees perforamnce report using ireportdesigner.

For example, i have an employees table and want to generate pie chart for defects(sev1,sev2,sev3) that he/she fixed in a quarter for each employee.

something like below,

  Query1=  select employeeId from employees;

 Query2 = select employeeId, count(sev1),count(sev2),count(sev3) from employeedetail where employeeid= {employeeid from query1}  group by employeeid;

for each employee {

      generate pie chart;

}

Finally my report should have : employee1 name and pie chart, employee2 name and pie chart,employee2 name and pie chart .......................

Any suggestions?

Thanks,

Rmjrao.

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

You will want a main report using query1 to create your loop.  Put a subreport (query2) in the detail band of the main report.  You will need to pass some parameters (like employee id) from the main to the subreport.  You do not need to pass anything back if you are not aggregating the results from the individual employees.

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