-1

I have a reporting module for my application, where users can select the template, When a user selects a template, it will appear in jasper viewer with dummy data. But when the user starts generating the report it will use the data from the database.

I had the idea to first use the .properties file, but there are obstacles, how do I know if the report has not been generated by the original data? While in .jrxml file already exists query to the database, which if no data is entered it will display the null data.

How is the best solution? Please help.

Roman C
  • 49,761
  • 33
  • 66
  • 176
fanjavaid
  • 1,676
  • 8
  • 34
  • 65

1 Answers1

1

According to me do one thing write static query like :-

select 1,2,3,4....n 

So it will work like static data to your report and it will be easy to change the query and make it dynamic.

In the place of query write above query. so it will work as a dummy data for you.

Hunter
  • 820
  • 8
  • 19