Hello BIRT community,
I am trying to copy existing grid and paste that grid in a another global grid programmaticaly. But I always get errors. I have tried to use the copy method IDesignElement copy() but then i get GridItem instead of GridHandle. Beside that the addElement method needs slotId.
Then I found some post here on the forum about using the CopyUtil class. Using that class I can copy and paste the element but the problem ist also the slotId. I always get error that on that slot adding is not allowed.
"The copy is not allowed to be pasted into the Report Design's slot 0 because it is invalid."
The example here:
http://eclipsesrc.appspot.com/jsrcs/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/core/DesignElementCopyPropertyToTest.java.html
only shows how to copy some property of the grid and add the new grid to the body.
It would be nice to know how to copy and paste grid into another grid programmaticaly via the BIRT API.
Thank you in advance.