Jump to content

Problem with report not displaying the detail data


jonycus

Recommended Posts

I have a bizare problem. I am able to run mu report in iReport with all parameters defined and it gets all the data ok, and displays everything in order. However, when I run the same report from my application with the same parameter data (I know it is the same because I copy it from the log to the previous case, in the ireport), nothing in my detail band is displayed, but all therest od the bands are filled. 

Any suggestions?

Thanx in advance!

Vasko

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

 Actualy I have two types of reports: with custom datasource and a jdbc connection. But the problem persists in both. I managed to add a printout in the log of the next() method of my datasource and it does go through all of the items that are requred to be displayed in the report (they have the proper values). I'm starting to think that it might be some kind of a setting (property file) or a dependecy problem, or even a system property that iReport loads on startup (like system fonts?), but my application does not. 

Any ideas?

Regards, Vasko

Link to comment
Share on other sites

Hi Vasko !OK, so your datasource seems to be OK, but not displaying... Are you in a report or a subreport ? Did you check whether your datasource was full from Java, or at runtime in your report ?Could you also give us your sources so we can understand better ? :)

 

Regards,

Morgan

Link to comment
Share on other sites

Thanx for replying blaguman!

Just as a test, I made a clean test report (with the iReport 3.5.2 wizard) which has a simple query (select field1, field 2 from a table) and puted them in the report using a simple jdbc connection. I used the same driver version (using oracle thin) for both iReport and my application. And again, the detail field in the iReport preview mode is filled and in my application it is not.

So, what I am trying to say is that, it does not matter if I use datasource or just plain connection, the problem is there. I can give some of my source, but i do not think the problem is there. That's why I wrote in one of my previous posts, i think it might be something totaly unrelated to my source, like a setting of jasper reports, some library dependecy issue or a system related property.

I was more hoping that somebody might had the same problem and to try to share his idea about solving this.

Thanx again,

Vasko

P.S. I will post my source later, just in case, since I am not in my office right now... :)

Link to comment
Share on other sites

  • 3 weeks later...

 Hi all,

I managed to solve my problem, but forgot to post the sollution.... sorry about that.  :)

Here is what I did: It seems that the problem was with the compiling of the report. I compiled the report with iReport, and the used the compiled jasper file in the application. I decided to change that, and compile the report in the application. At my total surprise it turned out that an attribute in a tag in the xml definition was not defined (do not remember the attribute name). I am not sure if jasper managed to introduce an attribute in a minor version release (since iReport was using a 3.5.2, and in my app I am using 3.5.1) but removing the attribute solved my problem. So, if you have the same problem, what I recommend is to try and compile the report in the application. It should give you exactly what the problem is.

 

Cheers...

Vasko



Post Edited by jonycus at 07/11/2009 11:00
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...