Simple report example to get a single diagram displayed ?

Started by lemoux, October 21, 2019, 18:55:44 PM

Previous topic - Next topic

lemoux

Hi all,

I'm struggling to get a simple report generated based on archi available sample and jasper documentation.
Could anybody share a simple report template in order just to get a single diagram displayed ?
It would help me getting started especially with archi as data source...

Kind regards,
Laurent

Phil Beauvoir

October 22, 2019, 09:11:19 AM #1 Last Edit: October 22, 2019, 11:14:36 AM by Phil Beauvoir
Hi Laurent,

Jasper is not really suited for showing single diagrams, I think if you want to just one diagram out of many you might have to apply some logic to the template. Perhaps someone else might be able to advise?

Phil
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

rheward

Have a look at my post

https://forum.archimatetool.com/index.php?topic=746.0

which uses a jArchi script to read a view that decides what other views to dump out in a file. Sounds more complicated than it is.
You could even cut it down to a couple of lines just to grab your view with this being the key line of code:


var bytes = $.model.renderViewAsBase64("yourviewname", "PNG", {scale: 1, margin: 10});



lemoux

Hi,
Thank you both for your quick answers and the advice.
I'll study the jArchi script.
Kind regards,
Laurent