Jump to content

Running Jasper report with parameters


Recommended Posts

I am new to using jaspersoft reporting and I am creating jasper reports on external databases. I have a Jrbundle that needs to be updated.

And I was not able to run the report that has parameters!! When I preview the dataset it is showing zero results.

When I remove parameters from SQL dataset(removing Where clause) then I can preview the data. but when parameters are included in the SQL dataset, data preview shows zero results.

Please help me to understand if there are any additional Jars needed to preview the Jasper report that has parameters.

converted-file.png.414792b23a7c91b3419eac430edb35ef.png

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

For example, one solution is to preview the data after specifying parameters during preview.


1. Write SQL with parameters in the dataset.

2. Press the 'Refresh Preview Data' button in the data preview tab. --> Zero case.

w20220609_previewdata1.png.a3dafdfde0be17f86c2a7f95f13ab354.png

3. Execute the parameters in the Preview tab.

w20220609_previewtab.png.be373a2957a8e182e028f0f59340bd4c.png

4. Press the 'Refresh Preview Data' button in the Data Preview tab of the dataset again. --> Data will be displayed.

w20220609_previewdata2.png.bbe6313a6a01f7a65d6c94dab824172d.png

 

Link to comment
Share on other sites

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...