<p>Hi All,</p>
<p> </p>
<p>I have 3 libraries:-</p>
<p>1. Having 1 grid 1*1</p>
<p>2. Having a Chart 1</p>
<p>3. Having Chart 2</p>
<p> </p>
<p>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).</p>
<p>I wan't to include these 2 libraries at run time only not statically during design time.</p>
<p> </p>
<p>When I am doing so onPrepare event of reportDeisgn I am getting following error.</p>
<p><span style="font-size:8pt;font-family:'courier new';color:#000000;">Wrapped org.eclipse.birt.report.model.api.command.ContentException: The Chart("xyz") is not allowed directly or indirectly inside the Grid("1X1").Rows[0].Cells[0]'s slot(Content). (/report/method[
@name="onPrepare"]#42)</span></p>
<p> </p>
<p>cell.getContent().add("chartName"); --- throwing when I am adding chart to grid cell.</p>
<p> </p>
<p>Regards</p>
<p>Shasha</p>