Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The process for doing this is described at <a href="http://developer.actuate.com/community/forum/?app=blog&amp;blogid=45&amp;showentry=471" rel="nofollow noreferrer">http://developer.actuate.com/community/forum/?app=blog&amp;blogid=45&amp;showentry=471</a>, but it turns out that there are a few important steps missing. I'll fill in a few blanks here.</p> <p>The original instructions describe creating a Scripted Data Source, with an "open" script that makes use of the <code>com.actuate.json.JSONParser</code> class. First, it is important to realise that this class is not part of BIRT, and needs to be manually added (along with any dependencies).</p> <p>The download provided by the original instructions provides the <code>com.actuate.json.JSONParser</code> class, but leaves it up to you to source the dependencies. To make things easier I have reimplemented the JSONParser library in Maven, which will then download and package the dependencies for you. It also includes some bug fixes and enhancements like GZIP compression support. You can get the Maven project from <a href="https://github.com/mcasperson/birt-jsonparser" rel="nofollow noreferrer">https://github.com/mcasperson/birt-jsonparser</a>, and to build the <code>JSONParser</code> library and package the dependencies, run the command</p> <pre><code>mvn clean package dependency:copy-dependencies </code></pre> <p>This will result in the <strong>birt-jsonparser-0.0.1-SNAPSHOT.jar</strong> file being created in the <strong>target</strong> directory, and all the dependencies copied into the <strong>target\dependency</strong> directory. Copy all of these JAR files into the <strong>{BIRT_INSTALL}/plugins/org.eclipse.birt.report.viewer_{BIRT_VIEWER_VERSION}/birt/scriptlib</strong> directory to allow the <code>JSONParser</code> class to be accessed from within your BIRT report.</p> <p>If you want to debug your report, these JAR files will also have to be referenced in the Debug profile.</p> <p><img src="https://i.stack.imgur.com/d1WjM.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload