Procedural Language in Jasper Studio

0

I need to include procedural code to get data from database.
Example: use for/while loops, if conditions, open and close "cursor" data, to create a program that runs and obtains results.
This result is used to fill the report fields.
How can I do?
How can I include the procedural code?

angelo.1981's picture
Joined: Jan 9 2017 - 1:22am
Last seen: 1 year 2 months ago

1 Answer:

0

1. You can use scriplets where you can use Java jdbc to fetch some code and fill a field.

http://jasperreports.sourceforge.net/sample.reference/scriptlet/

2. If you can also create your own datasource adapter.

3. Or you can just create a JavaBeans datasource.

hozawa's picture
52592
Joined: Apr 24 2010 - 4:31pm
Last seen: 5 months 1 week ago
Feedback
randomness