Include Report Items from Multiple Libraries
I have 3 libraries:-
1. Having 1 grid 1*1
2. Having a Chart 1
3. Having Chart 2
Now in a blank report design based on user input I should include Lib & (Lib 2 or Lib 3 - based on what chart user has selected).
I wan't to include these 2 libraries at run time only not statically during design time.
When I am doing so onPrepare event of reportDeisgn I am getting following error.
Wrapped org.eclipse.birt.report.model.api.command.ContentException: The Chart("xyz") is not allowed directly or indirectly inside the Grid("1X1").Rows.Cells's slot(Content). (/report/method[@name="onPrepare"]#42)
cell.getContent().add("chartName"); --- throwing when I am adding chart to grid cell.