Results 1 to 1 of 1
  1. #1
    sonnymtate is offline Member
    Join Date
    Jun 2011
    Posts
    1
    Rep Power
    0

    Default iReports 2.0.2 Default value for missing fields

    Hello,

    I am using iReports V2.0.2 in an ERP called OS from Gus. Gus has created a customized system for using iReports for their reports and has advised us that we cannot upgrade the version of iReports.

    The ERP works by creating a .dat file with fields that start with a carat. So for instance, the SCOM database field, which are notes entered into an order would appear in this .dat file as:

    ^SCOM
    Notes appear here.

    This .dat file is placed in a folder on the server. The ERP then reads this file and processes it with the iReports API to produce a report.

    My problem is that if the SCOM database field is null, then the ERP does not create the ^SCOM field in the .dat file. So when iReports gets this .dat file, with repeated values turned on, it simply repeats the SCOM field of the last value it had, even if there's no field present. If the repeated values is turned off, and if a record has the same SCOM value as the one before it, it does not display, because it's a repeat of the previous value.

    I've tried putting new Boolean($F{SCOM} != null) in the Print when expression in the field properties with the repeated values turned off (as shown below):

    iReports 2.0.2 Default value for missing fields-ireport-field-property.jpg


    However, that does not solve the problem. Any suggestions?

    Thanks
    Last edited by sonnymtate; 06-02-2011 at 06:50 PM.

Similar Threads

  1. Copy Default table model to another default table model?
    By greatmajestics in forum AWT / Swing
    Replies: 2
    Last Post: 04-28-2010, 05:08 PM
  2. instance fields?
    By search4survival in forum New To Java
    Replies: 3
    Last Post: 04-03-2010, 06:10 PM
  3. Charts using iReports
    By roshni in forum Advanced Java
    Replies: 1
    Last Post: 04-21-2009, 08:42 PM
  4. Replies: 1
    Last Post: 03-10-2009, 02:12 PM
  5. Jasper iReports and Java
    By shinky in forum New To Java
    Replies: 2
    Last Post: 08-09-2007, 10:24 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •