Jump to content

Jasper Reports with dynamic data source


muthuvadugan

Recommended Posts

Hi Everyone,

This is what I have done so far.

1. Created a jasper report (without specifying the dataset/sql)

2. Executed a sql query (through jdbc) and passed the result set to a JRResultSetDataSource class and supplied the data set at runtime.

3. Successfully compiled and viewed the report.

But now I want to use some query filters which require User Inputs to be used in the filter. (Something like username = 'abc' in the where clause of the sql)

How can I make use of the report parameters before executing the sql?

 

Thanks in advance.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...