Question

I wanted to create a JasperReport which asks the user for a deliverer before it creates a report with data of the last the deliveries of the selected deliverer.

The problem, how I can do that? I found only examples where a parameter is created and the ArrayList is filled statically. But in my parameter I need the query result over the table of deliverers filled. Can anybody tell me a possible solution?

I'm using Jaspersoft Server 5.1 which directly access a PostgreSQL database which has a datawarehouse structur. So it's not possible to use Java code.

Was it helpful?

Solution

Here is the documentation for adding input controls to reports in JasperReports Server:

http://community.jaspersoft.com/documentation/jasperreports-server-user-guide/adding-input-controls

Scroll down to the section that deals with query-based input controls. Your input control will have a name, such as deliverer. In your report, you must add deliverer as a parameter and reference it in your query, as you have done in your comment.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top