Simple report example to get a single diagram displayed ?

Started by lemoux, October 21, 2019, 19: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

#1
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!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

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