We have an existing application built on node.js, looking to bolt in the Community Reporting module but very important to be able to preserve, embed, and link to our existing code for interoperability and to avoid rewrite. Any luck? Thx
We have an existing application built on node.js, looking to bolt in the Community Reporting module but very important to be able to preserve, embed, and link to our existing code for interoperability and to avoid rewrite. Any luck? Thx
Expose your visualisation as raster image or SVG that is reachable via a HTTP GET call and you can do that easily for all output formats. If you have a choice - supply SVG as this allow beautiful high-resolution print outs for PDF.
Otherwise you can embed custom HTML via the "html::extra-raw-content" attribute. Put global stuff on to the master-report, and element specific ones on to the element itself. The engine will not interpret that injected code - any syntax errors are your fault- but obviously this injection will only work in the browser, not in Print, PDF or any other output format.
If your visualisation requires a full browser to run you could always cheat and run that code in PhantomJS or a Webkit-to-html engine and generate a PNG (screenshot) or SVG (for instance via canvas2svg.js).
Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.
Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.