hendrakieran Posted April 23, 2008 Share Posted April 23, 2008 Hi All, I just started using iReport, to evaluate whether we can use it to replace our existing report generation system, it looks VERY,VERY promising so far. However I have a slight problem which I'm now stuck at. I created a simple report with subreport and later on I modified the query of the subreport to loosen up the condition in the SQL query so it can show more data. When I execute the subreport by itself, the change was effective as I can see more data on the output, however when I went back to the main report that calls this subreport, the output of the subreport section remain unchanged. Removing the subreport from the main report didn't help either. Is this a bug? Did I miss a step?Thanks in advance. H Link to comment Share on other sites More sharing options...
Pedja Posted April 23, 2008 Share Posted April 23, 2008 Did you compile the changed subreport before testing the main report again? You need to recompile it, just saving it isn't enough, since the .jasper file is what the main report looks at. However, if you run the subreport it is automatically compiled. Also, check the location of the .jasper file (check time modified on the file to make sure it is the one) and make sure that the path in the main report points to that location. Link to comment Share on other sites More sharing options...
hendrakieran Posted April 23, 2008 Author Share Posted April 23, 2008 Hi, thanks for responding.Yes, I recompiled the subreport again, somehow it always show the same output. I solved this by deleting all .java and .jasper files from the directory where I saved my files. H Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now