How do I pass a query from .py file to fill jasper template?


Hi There!
I'm working with postgresql database via django. Currently I am trying to create an Invoice pdf with a jasper template. For that I wrote a .py file that creates an invoice class with a query that contains fields and datasets that I would like to pass on to fill the jasper template. 

My problem is that I dont know how to pass on this query. 
I am very new to all of this so I would also like to know what kind of data adapter I need to choose in jaspersoft studio.

Thanks in advance!

(Just if you are wondering, I do not want to connect the report to the sql database. Just pass on the data from the .py file)

d.huhmann's picture
Joined: Oct 11 2019 - 12:58am
Last seen: 2 days 18 hours ago

0 Answers:

No answers yet