-1

In JasperReport I want to print a field when it does not contain empty array.

How can I check it?

In "Print when expression" it is possible to write:

$F{myField} != null

but as $F{myField} is an empty array (so it is not null) it does not work.

Is there any method to check it? It seems to me that there is no isEmpty() function for JasperReport.

1 Answers1

0

Try write something like:
$F{myField}.length() == 0

Nazar Paruna
  • 121
  • 1
  • 7