Results 1 to 1 of 1
- 06-02-2011, 05:45 PM #1
Member
- Join Date
- Jun 2011
- Posts
- 1
- Rep Power
- 0
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):
However, that does not solve the problem. Any suggestions?
ThanksLast edited by sonnymtate; 06-02-2011 at 05:50 PM.
Similar Threads
-
Copy Default table model to another default table model?
By greatmajestics in forum AWT / SwingReplies: 2Last Post: 04-28-2010, 04:08 PM -
instance fields?
By search4survival in forum New To JavaReplies: 3Last Post: 04-03-2010, 05:10 PM -
Charts using iReports
By roshni in forum Advanced JavaReplies: 1Last Post: 04-21-2009, 07:42 PM -
[SOLVED] Access to default session deniedAccess to default session denied
By jazz2k8 in forum NetworkingReplies: 1Last Post: 03-10-2009, 01:12 PM -
Jasper iReports and Java
By shinky in forum New To JavaReplies: 2Last Post: 08-09-2007, 09:24 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks