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

0

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 self.data 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 self.data 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: 6 days 7 min ago

0 Answers:

No answers yet
Feedback
randomness