Procedural Language in Jasper Studio

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: 4 years 7 months ago

1 Answer:

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
171413
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 9 months ago
Feedback